no writes to $.Poshytip if it is not loaded

This commit is contained in:
vitalets
2013-03-17 20:55:23 +04:00
parent 6b557bbb9f
commit 92940bb474
2 changed files with 93 additions and 86 deletions

@ -2,6 +2,11 @@ X-editable changelog
=============================
Version 1.4.4 wip
----------------------------
[bug] editable-poshytip on inline mode tries to write in $.Poshytip (vitalets)
Version 1.4.3 Mar 8, 2013
----------------------------
[bug #32] hotfix for jQuery UI 1.9+ (vitalets)

@ -105,6 +105,7 @@
* see https://github.com/vadikom/poshytip/issues/7
*/
/*jshint eqeqeq:false, curly: false*/
if($.Poshytip) { //need this check, because in inline mode poshytip may not be loaded!
var tips = [],
reBgImage = /^url\(["']?([^"'\)]*)["']?\);?$/i,
rePNG = /\.png$/i,
@ -199,5 +200,6 @@
this.$tip.css({left: this.pos.l, top: this.pos.t});
}
};
}
/*jshinteqeqeq: true, curly: true*/
}(window.jQuery));