MCPcopy Index your code
hub / github.com/SpringRoll/SpringRoll / enable

Method enable

src/scale-manager/ScaleManager.js:49–56  ·  view source on GitHub ↗

* Enables the scale manager listener. Will not be enabled if a callback is not supplied. * @param {Function} callback The function to be called on resize events.

(callback)

Source from the content-addressed store, hash-verified

47 * @param {Function} callback The function to be called on resize events.
48 */
49 enable(callback) {
50 if (callback instanceof Function) {
51 this.callback = callback;
52 this.resizer.enabled = true;
53 } else {
54 console.warn('Scale Manager was not passed a function');
55 }
56 }
57
58 /**
59 * Disables the scale manager.

Callers 3

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected