PHP Classes

File: modules/system/tests/js/fixtures/framework/TestSingletonWithDependency.js

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/system/tests/js/fixtures/framework/TestSingletonWithDependency.js   Download  
File: modules/system/tests/js/fixtures/framework/TestSingletonWithDependency.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Winter
Content management system that uses MVC
Author: By
Last change:
Date: 7 months ago
Size: 610 bytes
 

Contents

Class file image Download
/* globals window */ ((Snowboard) => { class TestSingletonWithDependency extends Snowboard.Singleton { dependencies() { return ['testDependencyOne']; } listens() { return { ready: 'ready', }; } ready() { return 'Ready'; } testMethod() { return 'Tested'; } dependencyTest() { return this.snowboard.testDependencyOne().testMethod(); } } Snowboard.addPlugin('testSingleton', TestSingletonWithDependency); })(window.Snowboard);