This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const requestAnimationFrame = window.requestAnimationFrame || | |
| window.webkitRequestAnimationFrame || | |
| window.mozRequestAnimationFrame; | |
| const cancelAnimationFrame = window.cancelAnimationFrame || | |
| window.webkitCancelAnimationFrame || | |
| window.mozCancelAnimationFrame; | |
| export default class ResizeObserver { | |
| constructor(domElement, callback) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //The @name is needed to specify a namespace. This is used in conjunction with the @lends annotation to | |
| //tie the object properties to the class. Adding the @class annotation at the top finally makes sure its grouped as 'Classes' | |
| //and not 'Namespaces' | |
| //NOTE: The @lends is used with the Class's prototype so that the properties show up in an IDE's intellisense | |
| //for all instances of the TeaCollection as well as instances of any object that inherits from TeaCollection | |
| //NOTE 2: You must use the @lends annotation before the object literal definition for the JSDocs to be generated correctly | |
| /** |