browser-compatibility.js 350 B

12345678910111213
  1. // This file is injected dependencies by amber-compat-xxx modules.
  2. // Therefore it is important that it _does_not_have_ define call.
  3. /* Make sure that console is defined */
  4. if(typeof console === "undefined") {
  5. this.console = {
  6. log: function() {},
  7. warn: function() {},
  8. info: function() {},
  9. debug: function() {},
  10. error: function() {}
  11. };
  12. }