minor tidy-up

This commit is contained in:
Joe Walker 2010-11-24 10:03:22 +00:00
commit cd03bfcda8
2 changed files with 4 additions and 3 deletions

View file

@ -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);
}
};

View file

@ -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) {