Skip to content

Commit 2d60a5e

Browse files
committed
debugging functionality for pmUtil
1 parent 8d6d467 commit 2d60a5e

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

Resources/public/module/pm-util/pm-util.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,26 @@ var pmUtilLoading = function () {
8888
}();
8989

9090
/**
91-
* Utilities
91+
* pmUtil
9292
*
93-
* @type {{initBootbox, init}}
93+
* @type {{config, debug, initBootbox, init}}
9494
*/
9595
var pmUtil = function () {
9696
"use strict";
9797

9898
return {
99+
config: {
100+
debugging: false
101+
},
102+
/**
103+
* Debug
104+
* @param message
105+
*/
106+
debug: function (message) {
107+
if (true === this.config.debugging) {
108+
console.log(message);
109+
}
110+
},
99111
/**
100112
* Init Bootbox
101113
*/

0 commit comments

Comments
 (0)