Sha256: 65e5a8f4f7facad7018d6fc2761d5fdaa66386556848050c0e7a6a4a907c6e2b

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 Bytes

Contents

window.Paloma = window.Paloma || {};

//
// Do nothing if there is no available console.
//
if ( !window['console'] ){
  Paloma.log = Paloma.warn = function(msg){};
}
else {
  Paloma.warn = function(msg){
    if (Paloma.env != 'development'){ return; }
    console.warn(msg);
  };

  Paloma.log = function(msg){
    if (Paloma.env != 'development'){ return; }
    console.log(msg);
  };
}


if ( !window['Paloma'] ){
  if ( !window['console'] ){
    console.warn("Paloma not found. Require it in your application.js.");
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paloma-6.1.0 vendor/assets/javascripts/paloma/init.js
paloma-6.0.0 vendor/assets/javascripts/paloma/init.js
paloma-5.1.0 vendor/assets/javascripts/paloma/init.js
paloma-5.0.1 vendor/assets/javascripts/paloma/init.js
paloma-5.0.0 vendor/assets/javascripts/paloma/init.js