refactor events to mixin from separate class

This commit is contained in:
Keegan
2016-01-28 11:45:00 -08:00
parent cdb855edaa
commit f5e2dbe5a3
8 changed files with 157 additions and 86 deletions
+7 -1
View File
@@ -1,6 +1,8 @@
'use strict';
module.exports = function() {
/** @type {ClayConfig} */
var Clay = window.Clay = this;
Clay.getItemByAppKey('cool_stuff').on('change', function() {
@@ -11,5 +13,9 @@ module.exports = function() {
}
});
Clay.getSettings();
Clay.on('test', function() {
console.debug('KEEGAN: this', this);
});
Clay.trigger('test');
};