Skip to content

Commit

Permalink
fix global pollution (possiblely major),, semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
client9 committed Apr 3, 2010
1 parent 15e5abc commit 6a98b57
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/xhr/location.js
Expand Up @@ -164,8 +164,9 @@ Location = function(url, doc, history) {
},

assign: function(url) {
var _this = this,
xhr;
var _this = this;
var xhr;
var event;

//console.log('assigning %s',url);
$url = url;
Expand Down Expand Up @@ -217,7 +218,7 @@ Location = function(url, doc, history) {
replace: function(url) {
this.assign(url);
}
}
};
};

var __exchangeHTMLDocument__ = function(doc, text, url) {
Expand Down Expand Up @@ -263,7 +264,7 @@ var __exchangeHTMLDocument__ = function(doc, text, url) {

try {
if (doc === window.document) {
console.log('triggering window.load')
console.log('triggering window.load');
event = doc.createEvent('HTMLEvents');
event.initEvent('load', false, false);
window.dispatchEvent( event, false );
Expand All @@ -272,5 +273,5 @@ var __exchangeHTMLDocument__ = function(doc, text, url) {
//console.log('window load event failed %s', e);
//swallow
}
}
}; /* closes return {... */
};

0 comments on commit 6a98b57

Please sign in to comment.