diff options
author | Adrian Lang <mail@adrianlang.de> | 2011-06-21 13:30:18 +0200 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2011-06-21 14:07:50 +0200 |
commit | cd06d16faa924afeb14f864b058e01ce8867057c (patch) | |
tree | 3a10fdbded20ee4e524a00cc935ed578a9523f3d /lib/scripts/compatibility.js | |
parent | 4b93850916b217e4bf2ede3ba5e5457e1916e9e7 (diff) | |
download | rpg-cd06d16faa924afeb14f864b058e01ce8867057c.tar.gz rpg-cd06d16faa924afeb14f864b058e01ce8867057c.tar.bz2 |
Fix index Javascript, introduce compatibility.js
* Removed "use strict" statement, since it does not work with our script file
joining (the statement has to be the first in a file or function)
* Make index a global object again to allow overriding and enhancing
* Use prefix dw_ for index object
* Reintroduce index.treeattach
* Support deprecated index.toggle calling convention
* Add $ prefix for jQuery variables
* Use slide animation for freshly loaded sublists as well
* Fix various errors
Diffstat (limited to 'lib/scripts/compatibility.js')
-rw-r--r-- | lib/scripts/compatibility.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/scripts/compatibility.js b/lib/scripts/compatibility.js new file mode 100644 index 000000000..559cc359a --- /dev/null +++ b/lib/scripts/compatibility.js @@ -0,0 +1,16 @@ +/*jslint sloppy: true */ +/*global dw_index, DEPRECATED */ + +var index = { + throbber_delay: dw_index.throbber_delay, + + toggle: function () { + DEPRECATED(); + dw_index.toggle.apply(dw_index, arguments); + }, + + treeattach: function () { + DEPRECATED(); + dw_index.treeattach.apply(dw_index, arguments); + } +}; |