| Total Complexity | 3 |
| Complexity/F | 1.5 |
| Lines of Code | 18 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /** global: App **/ |
||
| 2 | var App = App || {}; |
||
| 3 | |||
| 4 | App.Debug = { |
||
| 5 | |||
| 6 | defaults: { |
||
| 7 | enabled: false, |
||
| 8 | }, |
||
| 9 | options: {}, |
||
| 10 | |||
| 11 | init: function (options) { |
||
| 12 | this.options = $.extend({}, this.defaults, options); |
||
| 13 | }, |
||
| 14 | log: function () { |
||
| 15 | if (this.options.enabled && !!console.log) { |
||
| 16 | console.log.apply(null, arguments); |
||
| 17 | } |
||
| 18 | } |
||
| 19 | } |
||
| 20 |