* 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)
| 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. |
no outgoing calls
no test coverage detected