1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Get rid of 2 useless jQuery.delegate event handler

This commit is contained in:
Jean Boussier 2012-09-12 14:57:35 -04:00
parent 3387853d9c
commit 7bc63dd264

View File

@ -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 () {