From a048fcc34081b0e96dc0c317d39987f6d9ae2f62 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 31 Dec 2011 17:59:52 +0530 Subject: [PATCH] tooltip is optional --- source/Ox.UI/js/Bar/Ox.Resizebar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;