SwVitaliy

Untitled

May 6th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     Block.prototype.draw = function(reset, more)
  3.     {
  4.         if (typeof reset === 'undefined' || reset)
  5.         {
  6.             if ( typeof more === "function" )
  7.             {
  8.                 more.apply(this);
  9.             }
  10.  
  11.             if ( typeof reset === "function" )
  12.             {
  13.                 reset.apply(this);
  14.             }
  15.             else
  16.             {
  17.                 this._reset();
  18.             }
  19.         }
  20.         this._draw();
  21.     };
Advertisement
Add Comment
Please, Sign In to add comment