Browse Source

Fix show of null

ronar 9 năm trước cách đây
mục cha
commit
6c06be63fe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      jquery.nicescroll.js

+ 1 - 1
jquery.nicescroll.js

@@ -2368,7 +2368,7 @@
 			if (!self.haswrapper) self.hide();	
 			if (self.hlazyresize) clearTimeout(self.hlazyresize);
 			self.hlazyresize = setTimeout(function(){
-				self.show().resize();
+				self && self.show().resize();
 			},240);
 			
       return self;