Skip to content

Commit 9bae0db

Browse files
committed
Merge pull request #15 from mark-rushakoff/var-leak
Add missing `var` declarations
2 parents ae937a4 + 637732f commit 9bae0db

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/URI.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ URI.parse = function(string) {
212212
};
213213
URI.parseHost = function(string, parts) {
214214
// extract host:port
215-
var pos = string.indexOf('/');
215+
var pos = string.indexOf('/'), t;
216216
if (pos === -1) {
217217
pos = string.length;
218218
}
@@ -245,7 +245,8 @@ URI.parseHost = function(string, parts) {
245245
URI.parseAuthority = function(string, parts) {
246246
// extract username:password
247247
var pos = string.indexOf('@'),
248-
firstSlash = string.indexOf('/');
248+
firstSlash = string.indexOf('/'),
249+
t;
249250

250251
// authority@ must come before /path
251252
if (pos > -1 && (firstSlash === -1 || pos < firstSlash)) {
@@ -889,7 +890,7 @@ p.suffix = function(v, build) {
889890

890891
var filename = this.filename(),
891892
pos = filename.lastIndexOf('.'),
892-
s;
893+
s, res;
893894

894895
if (pos === -1) {
895896
return "";

0 commit comments

Comments
 (0)