Changed "instanceof jQuery" to "instanceof $"

Original code will break if jquery noconflict is applied, where $ and jQuery produces jQuery instance of different versions.
This commit is contained in:
aegisrunestone
2014-09-02 14:53:58 +08:00
parent 1d06af1d5c
commit cdb0f5cde0
+1 -1
View File
@@ -839,7 +839,7 @@
* than the original.
*/
fn.register_widget = function($el) {
var isDOM = $el instanceof jQuery;
var isDOM = $el instanceof $;
var wgd = isDOM ? this.dom_to_coords($el) : $el;
var posChanged = false;
isDOM || ($el = wgd.el);