From e5c3f15e67cd9bf483f7a1bfce147f1771479029 Mon Sep 17 00:00:00 2001 From: Keegan Date: Tue, 19 Jan 2016 14:13:50 -0800 Subject: [PATCH] clean up debug code --- dev/custom-fn.js | 7 ++++--- dev/dev.js | 8 -------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/dev/custom-fn.js b/dev/custom-fn.js index 0cedd6f..a65dfb0 100644 --- a/dev/custom-fn.js +++ b/dev/custom-fn.js @@ -1,11 +1,12 @@ 'use strict'; module.exports = function() { - var Api = this; + var Api = window.Clay = this; var testHandler = function() { - console.debug('KEEGAN: EVENT', this); - Api.getItemByAppKey('background').off(testHandler); + console.debug('KEEGAN: this', this); + console.debug('KEEGAN: arguments', arguments); +// Api.getItemByAppKey('background').off(testHandler); }; Api.getItemByAppKey('background').on('change', testHandler); diff --git a/dev/dev.js b/dev/dev.js index 97c4b1d..d54badd 100644 --- a/dev/dev.js +++ b/dev/dev.js @@ -7,11 +7,3 @@ window.customFn = require('./custom-fn.js'); var platform = window.navigator.userAgent.match('Android') ? 'android' : 'ios'; document.documentElement.classList.add('platform-' + platform); - -window.expand = function(obj) { - obj.size = 5; -}; - -function unexpand(obj) { - obj.size = 1; -}