Sha256: 291077705d2b751b25ce90f403df9951f48a2b4cfb82b4f134fdafc0d0b25b31

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 Bytes

Contents

// Fix console for IE, lolz, now
if (!window.console) {
  window.console = {};
  [
    "log","info","warn","error","assert","dir","clear","profile","profileEnd"
  ].forEach(function (method) {
      window.console[method] = function() {};
  });
}

// From: http://stackoverflow.com/a/5539378
if (Function.prototype.bind && window.console && typeof console.log == "object"){
    [
      "log","info","warn","error","assert","dir","clear","profile","profileEnd"
    ].forEach(function (method) {
      console[method] = this.bind(console[method], console);
    }, Function.prototype.call);
}


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ie-compat-0.1.2 lib/assets/ie-compat/console.js
ie-compat-0.1.1 lib/assets/ie-compat/console.js
ie-compat-0.1.0 assets/ie-compat/console.js