PHP Classes

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

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/system/tests/js/fixtures/framework/TestClosureListener.js   Download  
File: modules/system/tests/js/fixtures/framework/TestClosureListener.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: 514 bytes
 

Contents

Class file image Download
/* globals window */ ((Snowboard) => { class TestClosureListener extends Snowboard.Singleton { listens() { return { eventOne: () => { this.eventResult = 'Closure eventOne called'; }, eventTwo: (arg) => { this.eventResult = `Closure eventTwo called with arg '${arg}'`; } }; } } Snowboard.addPlugin('testClosure', TestClosureListener); })(window.Snowboard);