Permalink
Browse files

fixed logic error due to reuse of variables

  • Loading branch information...
1 parent 3204941 commit 5b969b948c52c47da5bb2231dc0e810c9a57d1d7 @neonstalwart committed Mar 29, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/compose.js
View
@@ -229,9 +229,9 @@ define([], function(){
if(result instanceof Constructor){
instance = result;
}else{
- for(var i in result){
- if(result.hasOwnProperty(i)){
- instance[i] = result[i];
+ for(var key in result){
+ if(result.hasOwnProperty(key)){
+ instance[key] = result[key];
}
}
}

0 comments on commit 5b969b9

Please sign in to comment.