提交 b57f2ffaa371317933898cc844688e0dd5c9b606

作者 sandaruwan_silva
1 个父辈 984d3b49

Re: #3 reformatted h5boilerplate plugins.js to use 2 space indentation

正在显示 1 个修改的文件 包含 16 行增加16 行删除
1 // Avoid `console` errors in browsers that lack a console. 1 // Avoid `console` errors in browsers that lack a console.
2 (function() { 2 (function() {
3 - var method;  
4 - var noop = function () {};  
5 - var methods = [  
6 - 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',  
7 - 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',  
8 - 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',  
9 - 'timeStamp', 'trace', 'warn'  
10 - ];  
11 - var length = methods.length;  
12 - var console = (window.console = window.console || {}); 3 + var method;
  4 + var noop = function () {};
  5 + var methods = [
  6 + 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
  7 + 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
  8 + 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
  9 + 'timeStamp', 'trace', 'warn'
  10 + ];
  11 + var length = methods.length;
  12 + var console = (window.console = window.console || {});
13 13
14 - while (length--) {  
15 - method = methods[length]; 14 + while (length--) {
  15 + method = methods[length];
16 16
17 - // Only stub undefined methods.  
18 - if (!console[method]) {  
19 - console[method] = noop;  
20 - } 17 + // Only stub undefined methods.
  18 + if (!console[method]) {
  19 + console[method] = noop;
21 } 20 }
  21 + }
22 }()); 22 }());
23 23
24 // Place any jQuery/helper plugins in here. 24 // Place any jQuery/helper plugins in here.
注册登录 后发表评论