Ver Fonte

Fix show of null

ronar há 9 anos atrás
pai
commit
6c06be63fe
1 ficheiros alterados com 1 adições e 1 exclusões
  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;