Skip to content

Commit

Permalink
update log function from https://gist.github.com/bgrins/5108712
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrins committed May 5, 2013
1 parent d9ee0da commit 0c924a5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions spectrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,6 @@
].join("");
})();

var log = function() { };
if (window.console) {
if (Function.prototype.bind) {
log = Function.prototype.bind.call(console.log, console);
}
else {
log = function() {
Function.prototype.apply.call(console.log, console, arguments);
};
}
}

function paletteTemplate (p, color, className) {
var html = [];
for (var i = 0; i < p.length; i++) {
Expand Down Expand Up @@ -915,6 +903,8 @@
}


function log(){/* jshint -W021 */if(window.console){if(Function.prototype.bind)log=Function.prototype.bind.call(console.log,console);else log=function(){Function.prototype.apply.call(console.log,console,arguments);};log.apply(this,arguments);}}

/**
* Define a jQuery plugin
*/
Expand Down

0 comments on commit 0c924a5

Please sign in to comment.