Commits

Anton Afanasyev  committed d0aca33

fixed typo
fixed nullref error when requestPageCore_ returns nothing

  • Participants
  • Parent commits 9f8732c
  • Branches backwards-load
  • Tags beta

Comments (0)

Files changed (1)

File autopagerize.user.js

     }
 
     if( !url && !urlPrev ){
-        debug( "cannot continue because not prev or next url found" );
+        debug( "cannot continue because no prev or next url found" );
         return;
     }
     
         self.requestLoadPrev.apply( self, [res] );
     });
 
+    if( !ret )
+        return;
+    
     // stopped while filtering
     if( !ret.ret ) {
         this.requestURLPrev = ret.url;
         self.requestLoad.apply( self, [res] );
     });
 
+    if( !ret )
+        return;
+    
     // stopped while filtering
     if( !ret.ret ) {
         this.requestURL = ret.url;