Permalink
Browse files

Merge pull request #679 from duclet/613

Fix for #613
  • Loading branch information...
duclet committed Feb 28, 2012
2 parents 7eb3190 + 4154d99 commit 884082c1ad23306019690bb4f8561ea9b6a29237
Showing with 2,053 additions and 38,804 deletions.
  1. +0 −4,376 lib/jquery-1.3.2.js
  2. +0 −19 lib/jquery-1.3.2.min.js
  3. +0 −6,241 lib/jquery-1.4.2.js
  4. +0 −154 lib/jquery-1.4.2.min.js
  5. +0 −151 lib/jquery-1.4.js
  6. +0 −16 lib/jquery-1.5.min.js
  7. +0 −18 lib/jquery-1.6.2.min.js
  8. +1,922 −1,637 lib/{jquery-1.6.2.js → jquery-1.7.1.js}
  9. +4 −0 lib/jquery-1.7.1.min.js
  10. +11 −11 src/dateinput/dateinput.js
  11. +5 −5 src/overlay/overlay.js
  12. +11 −14 src/rangeinput/rangeinput.js
  13. +3 −4 src/scrollable/scrollable.autoscroll.js
  14. +3 −3 src/scrollable/scrollable.js
  15. +1 −1 src/scrollable/scrollable.navigator.js
  16. +8 −8 src/tabs/tabs.js
  17. +4 −4 src/tabs/tabs.slideshow.js
  18. +6 −6 src/toolbox/toolbox.expose.js
  19. +2 −2 src/toolbox/toolbox.history.js
  20. +1 −1 src/toolbox/toolbox.mousewheel.js
  21. +6 −6 src/tooltip/tooltip.js
  22. +15 −15 src/validator/validator.js
  23. +1 −2 test/dateinput/customized.htm
  24. +1 −2 test/dateinput/minimal.htm
  25. +2 −2 test/dateinput/open.htm
  26. +1 −2 test/dateinput/setmin.htm
  27. +1 −2 test/dateinput/tabs.htm
  28. +1 −2 test/form/dateinput-layout.htm
  29. +1 −2 test/form/dateinput.htm
  30. +1 −2 test/form/draggable.htm
  31. +0 −4,376 test/js/jquery-1.3.2.js
  32. +0 −19 test/js/jquery-1.3.2.min.js
  33. +0 −6,078 test/js/jquery-1.4.1.js
  34. +0 −152 test/js/jquery-1.4.1.min.js
  35. +0 −6,241 test/js/jquery-1.4.2.js
  36. +0 −154 test/js/jquery-1.4.2.min.js
  37. +0 −16 test/js/jquery-1.5.min.js
  38. +0 −8,981 test/js/jquery-1.6.2.js
  39. +0 −18 test/js/jquery-1.6.2.min.js
  40. +2 −2 test/overlay/apple.html
  41. +1 −2 test/overlay/events.htm
  42. +1 −2 test/overlay/external.htm
  43. +1 −2 test/overlay/index.htm
  44. +1 −2 test/overlay/no-trigger.htm
  45. +1 −2 test/rangeinput/multiple.htm
  46. +1 −2 test/rangeinput/scrollbar.htm
  47. +1 −2 test/rangeinput/vertical.htm
  48. +1 −2 test/scrollable/autoscroll.html
  49. +2 −3 test/scrollable/history.html
  50. +1 −2 test/scrollable/index.html
  51. +1 −2 test/scrollable/multiple.htm
  52. +1 −2 test/scrollable/single.html
  53. +1 −2 test/scrollable/size2.html
  54. +1 −2 test/tabs/accordion-horizontal.htm
  55. +2 −2 test/tabs/effect.html
  56. +2 −2 test/tabs/history.htm
  57. +1 −2 test/tabs/index.html
  58. +1 −1 test/tabs/slideshow.htm
  59. +2 −2 test/toolbox/expose.html
  60. +1 −2 test/toolbox/flashembed.htm
  61. +1 −2 test/toolbox/mask/mask.htm
  62. +1 −1 test/tooltip/click.html
  63. +1 −1 test/tooltip/dynamic.html
  64. +1 −1 test/tooltip/index.html
  65. +2 −2 test/tooltip/many.html
  66. +1 −2 test/tooltip/positioning.htm
  67. +2 −3 test/tooltip/vertical_form.html
  68. +1 −1 test/validator/dateinputs.htm
  69. +1 −1 test/validator/minimal.htm
  70. +1 −1 test/validator/no-form.htm
  71. +1 −1 test/validator/onsubmit.htm
  72. +1 −1 test/validator/radio.htm
  73. +1 −1 test/validator/submit_manually.htm
  74. +1 −1 test/validator/validator.htm
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -332,7 +332,7 @@
ev.type = "onShow";
fire.trigger(ev);
- $(document).bind("keydown.d", function(e) {
+ $(document).on("keydown.d", function(e) {
if (e.ctrlKey) { return true; }
var key = e.keyCode;
@@ -399,7 +399,7 @@
// click outside dateinput
- $(document).bind("click.d", function(e) {
+ $(document).on("click.d", function(e) {
var el = e.target;
if (!$(el).parents("#" + css.root).length && el != input[0] && (!trigger || el != trigger[0])) {
@@ -435,24 +435,24 @@
opened = true;
// month selector
- monthSelector.unbind("change").change(function() {
+ monthSelector.off("change").change(function() {
self.setValue(integer(yearSelector.val()), integer($(this).val()));
});
// year selector
- yearSelector.unbind("change").change(function() {
+ yearSelector.off("change").change(function() {
self.setValue(integer($(this).val()), integer(monthSelector.val()));
});
// prev / next month
- pm = root.find("#" + css.prev).unbind("click").click(function(e) {
+ pm = root.find("#" + css.prev).off("click").click(function(e) {
if (!pm.hasClass(css.disabled)) {
self.addMonth(-1);
}
return false;
});
- nm = root.find("#" + css.next).unbind("click").click(function(e) {
+ nm = root.find("#" + css.next).off("click").click(function(e) {
if (!nm.hasClass(css.disabled)) {
self.addMonth();
}
@@ -669,7 +669,7 @@
},
destroy: function() {
- input.add(document).unbind("click.d").unbind("keydown.d");
+ input.add(document).off("click.d keydown.d");
root.add(trigger).remove();
input.removeData("dateinput").removeClass(css.input);
if (original) { input.replaceWith(original); }
@@ -687,7 +687,7 @@
// cancelled ?
if (e.isDefaultPrevented()) { return; }
- $(document).unbind("click.d").unbind("keydown.d");
+ $(document).off("click.d keydown.d");
// do the hide
root.hide();
@@ -728,20 +728,20 @@
// configuration
if ($.isFunction(conf[name])) {
- $(self).bind(name, conf[name]);
+ $(self).on(name, conf[name]);
}
// API methods
self[name] = function(fn) {
- if (fn) { $(self).bind(name, fn); }
+ if (fn) { $(self).on(name, fn); }
return self;
};
});
if (!conf.editable) {
// show dateinput & assign keyboard shortcuts
- input.bind("focus.d click.d", self.show).keydown(function(e) {
+ input.on("focus.d click.d", self.show).keydown(function(e) {
var key = e.keyCode;
View
@@ -163,7 +163,7 @@
// when window is clicked outside overlay, we close
if (conf.closeOnClick) {
- $(document).bind("click." + uid, function(e) {
+ $(document).on("click." + uid, function(e) {
if (!$(e.target).parents(overlay).length) {
self.close(e);
}
@@ -174,7 +174,7 @@
if (conf.closeOnEsc) {
// one callback is enough if multiple instances are loaded simultaneously
- $(document).bind("keydown." + uid, function(e) {
+ $(document).on("keydown." + uid, function(e) {
if (e.keyCode == 27) {
self.close(e);
}
@@ -203,7 +203,7 @@
});
// unbind the keyboard / clicking actions
- $(document).unbind("click." + uid).unbind("keydown." + uid);
+ $(document).off("click." + uid + " keydown." + uid);
if (maskConf) {
$.mask.close();
@@ -240,12 +240,12 @@
// configuration
if ($.isFunction(conf[name])) {
- $(self).bind(name, conf[name]);
+ $(self).on(name, conf[name]);
}
// API
self[name] = function(fn) {
- if (fn) { $(self).bind(name, fn); }
+ if (fn) { $(self).on(name, fn); }
return self;
};
});
@@ -46,7 +46,7 @@
FULL featured drag and drop. 0.7 kb minified, 0.3 gzipped. done.
Who told d'n'd is rocket science? Usage:
- $(".myelement").drag({y: false}).bind("drag", function(event, x, y) {
+ $(".myelement").drag({y: false}).on("drag", function(event, x, y) {
// do your custom thing
});
@@ -66,7 +66,7 @@
conf = $.extend({x: true, y: true, drag: true}, conf);
- doc = doc || $(document).bind("mousedown mouseup", function(e) {
+ doc = doc || $(document).on("mousedown mouseup", function(e) {
var el = $(e.target);
@@ -78,7 +78,7 @@
y0 = e.pageY - offset.top,
start = true;
- doc.bind("mousemove.drag", function(e) {
+ doc.on("mousemove.drag", function(e) {
var x = e.pageX -x0,
y = e.pageY -y0,
props = {};
@@ -104,7 +104,7 @@
draggable.trigger("dragEnd");
}
} finally {
- doc.unbind("mousemove.drag");
+ doc.off("mousemove.drag");
draggable = null;
}
}
@@ -167,11 +167,8 @@
precision = conf.precision;
if (precision === undefined) {
- try {
- precision = step.toString().split(".")[1].length;
- } catch (err) {
- precision = 0;
- }
+ precision = step.toString().split(".");
+ precision = precision.length === 2 ? precision[1].length : 0;
}
// Replace built-in range input (type attribute cannot be changed)
@@ -330,19 +327,19 @@
// from configuration
if ($.isFunction(conf[name])) {
- $(self).bind(name, conf[name]);
+ $(self).on(name, conf[name]);
}
// API methods
self[name] = function(fn) {
- if (fn) { $(self).bind(name, fn); }
+ if (fn) { $(self).on(name, fn); }
return self;
};
});
// dragging
- handle.drag({drag: false}).bind("dragStart", function() {
+ handle.drag({drag: false}).on("dragStart", function() {
/* do some pre- calculations for seek() function. improves performance */
init();
@@ -351,12 +348,12 @@
fireOnSlide = hasEvent($(self)) || hasEvent(input);
- }).bind("drag", function(e, y, x) {
+ }).on("drag", function(e, y, x) {
if (input.is(":disabled")) { return false; }
slide(e, vertical ? y : x);
- }).bind("dragEnd", function(e) {
+ }).on("dragEnd", function(e) {
if (!e.isDefaultPrevented()) {
e.type = "change";
fire.trigger(e, [value]);
@@ -59,14 +59,13 @@
if (timer) { return; }
stopped = false;
-
- root.bind('onSeek', scroll);
- scroll();
+ root.on('onSeek', scroll);
+ scroll();
};
api.pause = function() {
timer = clearTimeout(timer); // clear any queued items immediately
- root.unbind('onSeek', scroll);
+ root.off('onSeek', scroll);
};
// resume playing if not stopped
@@ -190,11 +190,11 @@
// configuration
if ($.isFunction(conf[name])) {
- $(self).bind(name, conf[name]);
+ $(self).on(name, conf[name]);
}
self[name] = function(fn) {
- if (fn) { $(self).bind(name, fn); }
+ if (fn) { $(self).on(name, fn); }
return self;
};
});
@@ -314,7 +314,7 @@
if (conf.keyboard) {
- $(document).bind("keydown.scrollable", function(evt) {
+ $(document).on("keydown.scrollable", function(evt) {
// skip certain conditions
if (!conf.keyboard || evt.altKey || evt.ctrlKey || evt.metaKey || $(evt.target).is(":input")) {
@@ -62,7 +62,7 @@
if (hashed) {
history.pushState({i: 0}, '');
- $(window).bind("popstate", function(evt) {
+ $(window).on("popstate", function(evt) {
var s = evt.originalEvent.state;
if (s) { api.seekTo(s.i); }
});
View
@@ -163,7 +163,7 @@
firstRender = !root.data('tabs');
if (typeof i == 'string' && i.replace("#", "")) {
- tab = tabs.filter("[href*=" + i.replace("#", "") + "]");
+ tab = tabs.filter("[href*=\"" + i.replace("#", "") + "\"]");
i = Math.max(tabs.index(tab), 0);
}
@@ -239,8 +239,8 @@
},
destroy: function() {
- tabs.unbind(conf.event).removeClass(conf.current);
- panes.find("a[href^=#]").unbind("click.T");
+ tabs.off(conf.event).removeClass(conf.current);
+ panes.find("a[href^=\"#\"]").off("click.T");
return self;
}
@@ -251,12 +251,12 @@
// configuration
if ($.isFunction(conf[name])) {
- $(self).bind(name, conf[name]);
+ $(self).on(name, conf[name]);
}
// API
self[name] = function(fn) {
- if (fn) { $(self).bind(name, fn); }
+ if (fn) { $(self).on(name, fn); }
return self;
};
});
@@ -269,19 +269,19 @@
// setup click actions for each tab
tabs.each(function(i) {
- $(this).bind(conf.event, function(e) {
+ $(this).on(conf.event, function(e) {
self.click(i, e);
return e.preventDefault();
});
});
// cross tab anchor link
- panes.find("a[href^=#]").bind("click.T", function(e) {
+ panes.find("a[href^=\"#\"]").on("click.T", function(e) {
self.click($(this).attr("href"), e);
});
// open initial tab
- if (location.hash && conf.tabs == "a" && root.find("[href=" +location.hash+ "]").length) {
+ if (location.hash && conf.tabs == "a" && root.find("[href=\"" +location.hash+ "\"]").length) {
self.click(location.hash);
} else {
@@ -86,7 +86,7 @@
// onPlay
fire.trigger("onPlay");
- fire.bind('onClick', next);
+ fire.on('onClick', next);
next();
return self;
@@ -106,7 +106,7 @@
// onPause
fire.trigger("onPause");
- fire.unbind('onClick', next);
+ fire.off('onClick', next);
return self;
},
@@ -129,12 +129,12 @@
// configuration
if ($.isFunction(conf[name])) {
- $(self).bind(name, conf[name]);
+ $(self).on(name, conf[name]);
}
// API methods
self[name] = function(fn) {
- return $(self).bind(name, fn);
+ return $(self).on(name, fn);
};
});
@@ -116,7 +116,7 @@
// esc button
if (conf.closeOnEsc) {
- $(document).bind("keydown.mask", function(e) {
+ $(document).on("keydown.mask", function(e) {
if (e.keyCode == 27) {
$.mask.close(e);
}
@@ -125,13 +125,13 @@
// mask click closes
if (conf.closeOnClick) {
- mask.bind("click.mask", function(e) {
+ mask.on("click.mask", function(e) {
$.mask.close(e);
});
}
// resize mask when window is resized
- $(window).bind("resize.mask", function() {
+ $(window).on("resize.mask", function() {
$.mask.fit();
});
@@ -178,9 +178,9 @@
});
// unbind various event listeners
- $(document).unbind("keydown.mask");
- mask.unbind("click.mask");
- $(window).unbind("resize.mask");
+ $(document).off("keydown.mask");
+ mask.off("click.mask");
+ $(window).off("resize.mask");
}
return this;
Oops, something went wrong.

0 comments on commit 884082c

Please sign in to comment.