Skip to content

Commit

Permalink
Fixing two bugs introduced in the multiline reformat
Browse files Browse the repository at this point in the history
First bug is that the "c" is expected by the for loop condition to be
the array, not the string.  Second bug is that the new semicolon on
line 36 (after the first anonymous function declaration) separated the
calling parentheses and the return result of the second function, which
was intentionally attached as a parameter to be passed in as "a" to the
first.
  • Loading branch information
Nick Chaves committed Jun 4, 2012
1 parent 7a2f9dc commit d242bd2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions js/plugins.js
Expand Up @@ -30,12 +30,10 @@ window.log = function f() {
function b() {}
var c = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn";
var d;
for (c.split(","); !!(d = c.pop());) {
for (c = c.split(","); !!(d = c.pop());) {
a[d] = a[d] || b;
}
});

(function() {
})(function() {
try {
console.log();
return window.console;
Expand All @@ -44,5 +42,4 @@ window.log = function f() {
}
}());


// place any jQuery/helper plugins in here, instead of separate, slower script files.

0 comments on commit d242bd2

Please sign in to comment.