From cd03bfcda856a9db46dfb6e283d4037e0080b193 Mon Sep 17 00:00:00 2001 From: Joe Walker Date: Wed, 24 Nov 2010 10:03:22 +0000 Subject: [PATCH] minor tidy-up --- plugins/pilot/lib/event.js | 4 ++-- plugins/pilot/lib/proxy.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/pilot/lib/event.js b/plugins/pilot/lib/event.js index 033b9136..c2f6be72 100644 --- a/plugins/pilot/lib/event.js +++ b/plugins/pilot/lib/event.js @@ -48,7 +48,7 @@ define(function(require, exports, module) { var wrapper = function() { callback(window.event); }; - callback.$$wrapper = wrapper; + callback._wrapper = wrapper; elem.attachEvent("on" + type, wrapper); } }; @@ -58,7 +58,7 @@ define(function(require, exports, module) { return elem.removeEventListener(type, callback, false); } if (elem.detachEvent) { - elem.detachEvent("on" + type, callback.$$wrapper || callback); + elem.detachEvent("on" + type, callback._wrapper || callback); } }; diff --git a/plugins/pilot/lib/proxy.js b/plugins/pilot/lib/proxy.js index c2675dd0..88d76a54 100644 --- a/plugins/pilot/lib/proxy.js +++ b/plugins/pilot/lib/proxy.js @@ -34,8 +34,9 @@ * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ + define(function(require, exports, module) { - + var Promise = require('pilot/promise').Promise; exports.xhr = function(method, url, async, beforeSendCallback) {