browser-compatibility.js 414 B

1234567891011121314
  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. dir: function() {},
  7. log: function() {},
  8. warn: function() {},
  9. info: function() {},
  10. debug: function() {},
  11. error: function() {}
  12. };
  13. }