1
0
mirror of https://github.com/danog/sass-site.git synced 2024-12-14 18:37:35 +01:00
sass-site/source/assets/js/vendor/plugins.js

25 lines
760 B
JavaScript
Raw Normal View History

// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
2013-02-09 04:10:33 +01:00
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
2014-07-28 00:44:34 +02:00
'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn'
];
var length = methods.length;
var console = (window.console = window.console || {});
while (length--) {
method = methods[length];
// Only stub undefined methods.
if (!console[method]) {
console[method] = noop;
}
}
2013-10-09 12:30:53 +02:00
}());
// Place any jQuery/helper plugins in here.