mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
clean up debug code
This commit is contained in:
+4
-3
@@ -1,11 +1,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = function() {
|
module.exports = function() {
|
||||||
var Api = this;
|
var Api = window.Clay = this;
|
||||||
|
|
||||||
var testHandler = function() {
|
var testHandler = function() {
|
||||||
console.debug('KEEGAN: EVENT', this);
|
console.debug('KEEGAN: this', this);
|
||||||
Api.getItemByAppKey('background').off(testHandler);
|
console.debug('KEEGAN: arguments', arguments);
|
||||||
|
// Api.getItemByAppKey('background').off(testHandler);
|
||||||
};
|
};
|
||||||
|
|
||||||
Api.getItemByAppKey('background').on('change', testHandler);
|
Api.getItemByAppKey('background').on('change', testHandler);
|
||||||
|
|||||||
@@ -7,11 +7,3 @@ window.customFn = require('./custom-fn.js');
|
|||||||
|
|
||||||
var platform = window.navigator.userAgent.match('Android') ? 'android' : 'ios';
|
var platform = window.navigator.userAgent.match('Android') ? 'android' : 'ios';
|
||||||
document.documentElement.classList.add('platform-' + platform);
|
document.documentElement.classList.add('platform-' + platform);
|
||||||
|
|
||||||
window.expand = function(obj) {
|
|
||||||
obj.size = 5;
|
|
||||||
};
|
|
||||||
|
|
||||||
function unexpand(obj) {
|
|
||||||
obj.size = 1;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user