minor tidy-up
This commit is contained in:
parent
5b1f565a4d
commit
cd03bfcda8
2 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue