mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-01 14:47:37 -04:00
WIP - no love for minified.js anymore :(
This commit is contained in:
+11
-10
@@ -5,17 +5,18 @@ module.exports = function() {
|
||||
/** @type {ClayConfig} */
|
||||
var Clay = window.Clay = this;
|
||||
|
||||
Clay.getItemByAppKey('cool_stuff').on('change', function() {
|
||||
if (this.get()) {
|
||||
Clay.getItemByAppKey('background').enable();
|
||||
} else {
|
||||
Clay.getItemByAppKey('background').disable();
|
||||
}
|
||||
Clay.on(Clay.EVENTS.BEFORE_BUILD, function() {
|
||||
console.debug('KEEGAN: BEFORE_BUILD', this);
|
||||
});
|
||||
|
||||
Clay.on('test', function() {
|
||||
console.debug('KEEGAN: this', this);
|
||||
Clay.on(Clay.EVENTS.AFTER_BUILD, function() {
|
||||
console.debug('KEEGAN: AFTER_BUILD', this);
|
||||
Clay.getItemByAppKey('cool_stuff').on('change', function() {
|
||||
if (this.get()) {
|
||||
Clay.getItemByAppKey('background').enable();
|
||||
} else {
|
||||
Clay.getItemByAppKey('background').disable();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Clay.trigger('test');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user