Sha256: c644973acee5558de150a22230fe2107df547a8ee8b8a1c3ca87292e75970d26
Contents?: true
Size: 1.05 KB
Versions: 11
Compression:
Stored size: 1.05 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors. // Portions ©2008-2010 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== require("tasks/task"); // default callback SC.didPreloadBundle = function() {}; /** @private A task that preloads a bundle, supplying a target and action to be called on bundle load completion. */ SC.PreloadBundleTask = SC.Task.extend({ /** The identifier of the bundle to load. */ bundle: null, /** The target to supply to SC.loadBundle. */ target: "SC", /** The action to supply to SC.loadBundle. */ action: "preloaded", run: function(queue) { var bundle; if (bundle = this.get("bundle")) { var st = Date.now(); SC.loadBundle(this.get("bundle"), this.get("target"), this.get("action")); } } });
Version data entries
11 entries across 11 versions & 1 rubygems