tooltip is optional

This commit is contained in:
j 2011-12-31 17:59:52 +05:30
parent 09a3537dc1
commit a048fcc340

View file

@ -158,7 +158,7 @@ Ox.Resizebar = function(options, self) {
);
self.options.collapsed = !self.options.collapsed;
that.css({cursor: getCursor()});
self.$tooltip.options({title: getTitle()});
self.$tooltip && self.$tooltip.options({title: getTitle()});
}
}
@ -178,9 +178,9 @@ Ox.Resizebar = function(options, self) {
self.setOption = function(key, value) {
if (key == 'collapsed') {
that.css({cursor: getCursor()});
self.$tooltip.options({title: getTitle()});
self.$tooltip && self.$tooltip.options({title: getTitle()});
}
}
};
return that;