Sha256: b78c57cc0f719195c64bd328b05f952b7648e93f4c7bf48aa1e1e393b87fb1e9
Contents?: true
Size: 1.8 KB
Versions: 2
Compression:
Stored size: 1.8 KB
Contents
// ======================================================================== // SproutCore -- JavaScript Application Framework // Copyright ©2006-2008, Sprout Systems, Inc. and contributors. // Portions copyright ©2008 Apple, Inc. All rights reserved. // ======================================================================== require('core'); /* Core additions to SC */ SC.mixin(/** @scope SC */ { /** @deprecated Call this method during setup of your app to queue up methods to be called once the entire document has finished loading. If you call this method once the document has already loaded, then the function will be called immediately. Any function you register with this method will be called just before main. You should instead use ready(), which takes the same paramters. @param target {Object} optional target object. Or just pass a method. @param method {Function} the method to call. @return {void} */ callOnLoad: function(target, method) { return SC.ready(target, method) ; }, /** @deprecated Use guidFor() instead. */ getGUID: SC.guidFor }); // Returns the passed item as an array. If the item is already an array, // it is returned as is. If it is not an array, it is placed into one. If // it is null, an empty array is returned. Array.from = SC.$A ; // ........................................ // GLOBAL EXPORTS // var $type, $I, $A ; $type = SC.typeOf; $I = SC.inspect ; $A = SC.$A ; /** Makes the computed property as an outlet. Outlets can be setup en-masse when the object is first instantiated by calling initOutlets(). (This method is defined in SC.Observable). */ Function.prototype.outlet = function(aFlag) { this.autoconfiguredOutlet = (aFlag === undefined) ? YES : aFlag; return this ; } ;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sproutit-sproutcore-1.0.0.20090408130025 | frameworks/sproutcore/frameworks/deprecated/core.js |
sproutit-sproutcore-1.0.0.20090416161445 | frameworks/sproutcore/frameworks/deprecated/core.js |