File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -385,20 +385,16 @@ function ParallaxController() {
385385 this . destroy = function ( ) {
386386 _removeListeners ( ) ;
387387 _removeParallaxStyles ( ) ;
388- window . ParallaxController = null ;
389388 } ;
390389}
391390
392391/**
393392 * Static method to instantiate the ParallaxController.
394- * Returns a new or existing instance of the ParallaxController.
393+ * Returns a new instance of the ParallaxController.
395394 * @returns {Object } ParallaxController
396395 */
397396ParallaxController . init = function ( ) {
398- if ( ! window . ParallaxController ) {
399- window . ParallaxController = new ParallaxController ( ) ;
400- }
401- return window . ParallaxController ;
397+ return new ParallaxController ( ) ;
402398} ;
403399
404400export default ParallaxController ;
You can’t perform that action at this time.
0 commit comments