Permalink
Browse files

In Firefox, Array.prototype.size doesn't return anything. Array.proto…

…type.length does.
  • Loading branch information...
1 parent 42b1814 commit e5f1a1c1f39cb6690a1cb77ad915d462f69af638 @tdreyno tdreyno committed Jul 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sherpa.js
View
@@ -183,7 +183,7 @@ Sherpa.Node.prototype = {
}
}
if (this.lookup[parts[0]]) {
- var potentialMatch = this.lookup[parts[0]].find(parts.slice(1, parts.size), request, params);
+ var potentialMatch = this.lookup[parts[0]].find(parts.slice(1, parts.length), request, params);
if (potentialMatch) return potentialMatch;
}
if (this.catchall) {

0 comments on commit e5f1a1c

Please sign in to comment.