mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
16 lines
371 B
JavaScript
16 lines
371 B
JavaScript
'use strict';
|
|
|
|
module.exports = function() {
|
|
var Api = window.Clay = this;
|
|
|
|
var testHandler = function() {
|
|
console.debug('KEEGAN: this', this);
|
|
console.debug('KEEGAN: arguments', arguments);
|
|
// Api.getItemByAppKey('background').off(testHandler);
|
|
};
|
|
|
|
Api.getItemByAppKey('background').on('change', testHandler);
|
|
|
|
console.debug('custom fn worked');
|
|
};
|