We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3387853 commit 7bc63ddCopy full SHA for 7bc63dd
1 file changed
select2.js
@@ -165,7 +165,7 @@
165
});
166
}
167
168
- $document.delegate("body", "mousemove", function (e) {
+ $document.bind("mousemove", function (e) {
169
lastMousePosition = {x: e.pageX, y: e.pageY};
170
171
@@ -497,7 +497,7 @@
497
* also takes care of clicks on label tags that point to the source element
498
*/
499
$document.ready(function () {
500
- $document.delegate("body", "mousedown touchend", function (e) {
+ $document.bind("mousedown touchend", function (e) {
501
var target = $(e.target).closest("div.select2-container").get(0), attr;
502
if (target) {
503
$document.find("div.select2-container-active").each(function () {
0 commit comments