Skip to content

Commit

Permalink
remove console.log; don't get into an infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed May 21, 2011
1 parent 167a873 commit 67d809c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/js/widgets/base.js
Expand Up @@ -55,16 +55,14 @@ Hummingbird.Base.prototype = {
var obj = this.options.filter;
if(!obj) { return; }

while(typeof(obj) != "string") {
while(obj && typeof(obj) != "string") {
for(var i in obj) {
console.log(i);
this.filter.push(i);
obj = obj[i];
break;
}
}
this.filter.push(obj);
console.log(this.filter);
},

addToAverage: function(newValue) {
Expand Down

0 comments on commit 67d809c

Please sign in to comment.