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