fixed some of the IE bugs

This commit is contained in:
Misko Hevery 2010-07-23 11:46:04 -07:00
parent 748e91ba92
commit 1a730a9996
2 changed files with 1 additions and 2 deletions

View file

@ -67,7 +67,7 @@ Browser.prototype = {
script.src = url.replace('JSON_CALLBACK', callbackId);
this.head.append(script);
window[callbackId] = function(data){
delete window[callbackId];
window[callbackId] = undefined;
callback(200, data);
};
} else {

View file

@ -63,7 +63,6 @@ describe('browser', function(){
window[url[1]]('data');
expect(log).toEqual('200:data;');
expect(typeof window[url[1]]).toEqual('undefined');
});
});
});