summaryrefslogtreecommitdiff
path: root/lib/scripts/compatibility.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-08-06 13:56:57 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-08-18 09:47:49 +0200
commitb2a330ca75f1ceec063a08029abb0204110e3601 (patch)
tree0604dc244228b04363eb96beba6d7be47dff7231 /lib/scripts/compatibility.js
parent4678059bd0b91fb4d92aaa85cd5d0855818a2c30 (diff)
downloadrpg-b2a330ca75f1ceec063a08029abb0204110e3601.tar.gz
rpg-b2a330ca75f1ceec063a08029abb0204110e3601.tar.bz2
removed events.js
Diffstat (limited to 'lib/scripts/compatibility.js')
-rw-r--r--lib/scripts/compatibility.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/scripts/compatibility.js b/lib/scripts/compatibility.js
index 13b088582..a5cc87e58 100644
--- a/lib/scripts/compatibility.js
+++ b/lib/scripts/compatibility.js
@@ -108,3 +108,18 @@ function prependChild(parent,element) {
jQuery(parent).prepend(element);
}
+function addEvent(element, type, handler) {
+ DEPRECATED('Use jQuery.bind() instead.');
+ jQuery(element).bind(type,{},handler);
+}
+
+function removeEvent(element, type, handler) {
+ DEPRECATED('Use jQuery.unbind() instead.');
+ jQuery(element).unbind(type,handler);
+}
+
+function addInitEvent(func) {
+ DEPRECATED('Use jQuery(<function>) instead');
+ jQuery(func);
+}
+