spec/lib/jspec.js
function(object, method) {
       if (method) {
         if (object['__prototype__' + method])
           delete object[method]
         else
           object[method] = object['__original__' + method]
         delete object['__prototype__' + method]
         delete object['__original____' + method]
       }
       else if (object) {
         for (var key in object)
           if (captures = key.match(/^(?:__prototype__|__original__)(.*)/))
             destub(object, captures[1])
       }
       else
         while (JSpec.stubbed.length)
            destub(JSpec.stubbed.shift())
     }
function(object, method) {
       if (method) {
         if (object['__prototype__' + method])
           delete object[method]
         else
           object[method] = object['__original__' + method]
         delete object['__prototype__' + method]
         delete object['__original____' + method]
       }
       else if (object) {
         for (var key in object)
           if (captures = key.match(/^(?:__prototype__|__original__)(.*)/))
             destub(object, captures[1])
       }
       else
         while (JSpec.stubbed.length)
            destub(JSpec.stubbed.shift())
     }
function ( object , method ) { if ( method ) { if ( object [ '__prototype__' + method ] ) delete object [ method ] else object [ method ] = object [ '__original__' + method ] delete object [ '__prototype__' + method ] delete object [ '__original____' + method ] } else if ( object ) { for ( var key in object ) if ( captures = key . match ( / ^(?:__prototype__|__original__)(.*) / ) ) destub ( object , captures [ 1 ] ) } else while ( JSpec . stubbed . length ) destub ( JSpec . stubbed . shift ( ) ) }
Destub _object_'s _method_. When no _method_ is passed
all stubbed methods are destubbed. When no arguments
are passed every object found in JSpec.stubbed will be
destubbed.

@param  {mixed} object
@param  {string} method
@api public
Destub _object_ s _method_ . When no _method_ is passed all stubbed methods are destubbed . When no arguments are passed every object found in JSpec . stubbed will be destubbed .