Commit 9e82c171 9e82c171b57e9f02cc2c2b4367652dda8c32fdb4 by Nicolas Perriault

refs #552 - added note about __file__ deprecation in 1.1

1 parent 3cd356c9
......@@ -70,6 +70,12 @@ Sometimes it's helpful to inspect a variable, especially Object contents. The :r
Localize yourself in modules
----------------------------
.. warning::
.. deprecated:: 1.1
As of 1.1, CasperJS uses PhantomJS' builtin `require` and won't expose the `__file__` variable anymore.
If you're creating Casper modules, a cool thing to know is that there's a special built-in variable available in every module, ``__file__``, which contains the absolute path to current javascript file (the module file).
......