diff --git a/source/Ox.UI/js/Bar/Ox.Resizebar.js b/source/Ox.UI/js/Bar/Ox.Resizebar.js index c23ced3b..107a4c38 100644 --- a/source/Ox.UI/js/Bar/Ox.Resizebar.js +++ b/source/Ox.UI/js/Bar/Ox.Resizebar.js @@ -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;