mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
refactor events to mixin from separate class
This commit is contained in:
+7
-1
@@ -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');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user