Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit d242bd27cdfaafb7d36c0e1908d7c60bde1e8b67 1 parent 7a2f9dc
@nchaves nchaves authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 js/plugins.js
View
7 js/plugins.js
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.