mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 12:56:34 -04:00
22 lines
428 B
JavaScript
22 lines
428 B
JavaScript
'use strict';
|
|
|
|
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('test', function() {
|
|
console.debug('KEEGAN: this', this);
|
|
});
|
|
|
|
Clay.trigger('test');
|
|
};
|