add check for tooltip presence in jqueryUI build

This commit is contained in:
vitalets 2013-08-06 11:00:34 +04:00
parent 8baabe13cc
commit a77664603b

@ -16,6 +16,12 @@
splitOptions: function() {
this.containerOptions = {};
this.formOptions = {};
//check that jQueryUI build contains tooltip widget
if(!$.ui[this.containerName]) {
$.error('Please use jQueryUI with "tooltip" widget! http://jqueryui.com/download');
return;
}
//defaults for tooltip
var cDef = $.ui[this.containerName].prototype.options;
for(var k in this.options) {