Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Get rid of 2 useless jQuery.delegate event handler

  • Loading branch information...
commit 7bc63dd26447f11458ea047c5f663265d241a22a 1 parent 3387853
@byroot byroot authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 select2.js
View
4 select2.js
@@ -165,7 +165,7 @@
});
}
- $document.delegate("body", "mousemove", function (e) {
+ $document.bind("mousemove", function (e) {
lastMousePosition = {x: e.pageX, y: e.pageY};
});
@@ -497,7 +497,7 @@
* also takes care of clicks on label tags that point to the source element
*/
$document.ready(function () {
- $document.delegate("body", "mousedown touchend", function (e) {
+ $document.bind("mousedown touchend", function (e) {
var target = $(e.target).closest("div.select2-container").get(0), attr;
if (target) {
$document.find("div.select2-container-active").each(function () {
Please sign in to comment.
Something went wrong with that request. Please try again.