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

Commit

Permalink
Fixed .live() delegation handling VML issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Dec 8, 2011
1 parent 3946871 commit 8bdb12b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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: Thu Nov 24 17:54:34 2011 +0000
* Date: Sun Nov 27 15:05:59 2011 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
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: Thu Nov 24 17:54:34 2011 +0000
* Date: Sun Nov 27 15:05:59 2011 +0000
*/

/* Core qTip styles */
Expand Down
5 changes: 4 additions & 1 deletion 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: Thu Nov 24 17:54:34 2011 +0000
* Date: Sun Nov 27 15:05:59 2011 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -2970,6 +2970,9 @@ function Tip(qTip, command)
else {
vml = '<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>';
elems.tip.html(vml + vml);

// Prevent mousing down on the tip since it causes problems with .live() handling in IE due to VML
$('*', elems.tip).bind('click mousedown', function(event) { event.stopPropagation(); });
}
},

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

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/tips/tips.js
Expand Up @@ -333,6 +333,9 @@ function Tip(qTip, command)
else {
vml = '<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>';
elems.tip.html(vml + vml);

// Prevent mousing down on the tip since it causes problems with .live() handling in IE due to VML
$('*', elems.tip).bind('click mousedown', function(event) { event.stopPropagation(); });
}
},

Expand Down

0 comments on commit 8bdb12b

Please sign in to comment.