Permalink
Browse files

Fixing two bugs introduced in the multiline reformat

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...
1 parent 7a2f9dc commit d242bd27cdfaafb7d36c0e1908d7c60bde1e8b67 Nick Chaves committed Jun 4, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 js/plugins.js
View
@@ -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;
@@ -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.