Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Removed $(window) load event from mousemove binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Apr 8, 2011
1 parent 9c26959 commit 7643f07
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 22 deletions.
9 changes: 3 additions & 6 deletions dist/jquery.qtip.basic.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Fri Apr 8 19:33:04 2011 +0100
* Date: Fri Apr 8 20:10:03 2011 +0100
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -1638,11 +1638,8 @@ $.each(PLUGINS.fn, function(name, func) {
});

// Cache mousemove events for positioning purposes
$(window).one('load', function() {
var type = 'mousemove';
$(document).bind(type+'.qtip', function(event) {
MOUSE = { pageX: event.pageX, pageY: event.pageY, type: type };
});
$(document).bind('mousemove.qtip', function(event) {
MOUSE = { pageX: event.pageX, pageY: event.pageY, type: 'mousemove' };
});

// Set global qTip properties
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Fri Apr 8 19:33:04 2011 +0100
* Date: Fri Apr 8 20:10:03 2011 +0100
*/

/* Fluid class for determining actual width in IE */
Expand Down
9 changes: 3 additions & 6 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Fri Apr 8 19:33:04 2011 +0100
* Date: Fri Apr 8 20:10:03 2011 +0100
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -1638,11 +1638,8 @@ $.each(PLUGINS.fn, function(name, func) {
});

// Cache mousemove events for positioning purposes
$(window).one('load', function() {
var type = 'mousemove';
$(document).bind(type+'.qtip', function(event) {
MOUSE = { pageX: event.pageX, pageY: event.pageY, type: type };
});
$(document).bind('mousemove.qtip', function(event) {
MOUSE = { pageX: event.pageX, pageY: event.pageY, type: 'mousemove' };
});

// Set global qTip properties
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jquery.qtip.pack.js

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions src/core.js
Expand Up @@ -1596,11 +1596,8 @@ $.each(PLUGINS.fn, function(name, func) {
});

// Cache mousemove events for positioning purposes
$(window).one('load', function() {
var type = 'mousemove';
$(document).bind(type+'.qtip', function(event) {
MOUSE = { pageX: event.pageX, pageY: event.pageY, type: type };
});
$(document).bind('mousemove.qtip', function(event) {
MOUSE = { pageX: event.pageX, pageY: event.pageY, type: 'mousemove' };
});

// Set global qTip properties
Expand Down

0 comments on commit 7643f07

Please sign in to comment.