Sha256: daf34eca04999f54f3da4b8b1c799a87d18ef0bdba097aaca6470f55945e307c

Contents?: true

Size: 621 Bytes

Versions: 2

Compression:

Stored size: 621 Bytes

Contents

// ========================================================================
// SproutCore
// copyright 2006-2007 Sprout Systems, Inc.
// ========================================================================

require('Core') ;

// RunLoop is used to manage deferred runs.  It's lighter weight than setting
// lots of timeouts.
SC.runLoop = SC.Object.create({
  
  schedule: function() {
    var args = $A(arguments) ; 
    var obj = args.shift() ; 
    var method = obj[args.shift()];
    var delay = args.pop() ;
    var func = function() { method.apply(obj, args); }
    return setTimeout(func, delay) ;  
  }
  
}) ;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sproutcore-0.9.1 frameworks/sproutcore/foundation/run_loop.js
sproutcore-0.9.0 frameworks/sproutcore/foundation/run_loop.js