plugins.js 860 B

12345678910111213141516171819202122232425262728
  1. // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
  2. // Avoid `console` errors in browsers that lack a console.
  3. (function() {
  4. var method;
  5. var noop = function noop() {};
  6. var methods = [
  7. 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
  8. 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
  9. 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
  10. 'timeStamp', 'trace', 'warn'
  11. ];
  12. var length = methods.length;
  13. var console = (window.console = window.console || {});
  14. while (length--) {
  15. method = methods[length];
  16. // Only stub undefined methods.
  17. if (!console[method]) {
  18. console[method] = noop;
  19. }
  20. }
  21. }());
  22. // Place any jQuery/helper plugins in here.
  23. // @license-end