Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #10 from brynbellomy/97b406350ae1e56f059880001800b…

…30ce272698b

Including 'resource' local var in correct closure scope.
  • Loading branch information...
commit 0aff1eb75223fc580375d24650e94f0472fa5526 2 parents 79d1d14 + 97b4063
Paolo Fragomeni authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Porter.js
View
4 lib/Porter.js
@@ -337,7 +337,7 @@
if(Object.prototype.toString.call(resources[resource]) == "[object Array]") {
- ns[resource] = (function(request) {
+ ns[resource] = (function(request, resource) {
return function() {
@@ -415,7 +415,7 @@
req.apply(null, args);
}
- })(resources[resource]);
+ })(resources[resource], resource);
}
else {
Please sign in to comment.
Something went wrong with that request. Please try again.