@@ -35,7 +35,7 @@ define([
35
35
contextObj : null ,
36
36
37
37
postCreate : function ( ) {
38
- mx . logger . debug ( this . id + ".postCreate" ) ;
38
+ console . debug ( this . id + ".postCreate" ) ;
39
39
this . _setupEvents ( ) ;
40
40
41
41
if ( ! this . refreshOnContextChange ) {
@@ -44,7 +44,7 @@ define([
44
44
} ,
45
45
46
46
executeCode : function ( ) {
47
- mx . logger . debug ( this . id + ".executeCode" ) ;
47
+ console . debug ( this . id + ".executeCode" ) ;
48
48
var external = this . contentsPath !== "" ? true : false ;
49
49
switch ( this . contenttype ) {
50
50
case "html" :
@@ -99,7 +99,7 @@ define([
99
99
} ,
100
100
101
101
update : function ( obj , callback ) {
102
- mx . logger . debug ( this . id + ".update" ) ;
102
+ console . debug ( this . id + ".update" ) ;
103
103
this . contextObj = obj ;
104
104
if ( this . refreshOnContextChange ) {
105
105
this . executeCode ( ) ;
@@ -123,7 +123,7 @@ define([
123
123
} ,
124
124
125
125
_setupEvents : function ( ) {
126
- mx . logger . debug ( this . id + "._setupEvents" ) ;
126
+ console . debug ( this . id + "._setupEvents" ) ;
127
127
if ( this . onclickmf ) {
128
128
this . connect (
129
129
this . domNode ,
@@ -134,7 +134,7 @@ define([
134
134
} ,
135
135
136
136
_executeMicroflow : function ( ) {
137
- mx . logger . debug ( this . id + "._executeMicroflow" ) ;
137
+ console . debug ( this . id + "._executeMicroflow" ) ;
138
138
if ( this . onclickmf ) {
139
139
var params = {
140
140
actionname : this . onclickmf
@@ -146,19 +146,19 @@ define([
146
146
mx . data . action ( {
147
147
params : params ,
148
148
callback : function ( obj ) {
149
- mx . logger . debug (
149
+ console . debug (
150
150
this . id + " (executed microflow successfully)."
151
151
) ;
152
152
} ,
153
153
error : function ( error ) {
154
- mx . logger . error ( this . id + error ) ;
154
+ console . error ( this . id + error ) ;
155
155
}
156
156
} ) ;
157
157
}
158
158
} ,
159
159
160
160
evalJs : function ( ) {
161
- mx . logger . debug ( this . id + ".evalJS" ) ;
161
+ console . debug ( this . id + ".evalJS" ) ;
162
162
try {
163
163
eval ( this . contents + "\r\n//# sourceURL=" + this . id + ".js" ) ;
164
164
} catch ( error ) {
@@ -167,7 +167,7 @@ define([
167
167
} ,
168
168
169
169
_evalJQueryCode : function ( ) {
170
- mx . logger . debug ( this . id + "._evalJQueryCode" ) ;
170
+ console . debug ( this . id + "._evalJQueryCode" ) ;
171
171
require ( [ "jquery" ] , lang . hitch ( this , function ( jQuery ) {
172
172
try {
173
173
( function ( snippetCode ) {
@@ -197,7 +197,7 @@ define([
197
197
} ,
198
198
199
199
_handleError : function ( error ) {
200
- mx . logger . debug ( this . id + "._handleError" ) ;
200
+ console . debug ( this . id + "._handleError" ) ;
201
201
domConstruct . place (
202
202
'<div class="alert alert-danger">Error while evaluating javascript input: ' +
203
203
error +
@@ -208,7 +208,7 @@ define([
208
208
} ,
209
209
210
210
_executeCallback : function ( cb , from ) {
211
- mx . logger . debug ( this . id + "._executeCallback" + ( from ? " from " + from : "" ) ) ;
211
+ console . debug ( this . id + "._executeCallback" + ( from ? " from " + from : "" ) ) ;
212
212
if ( cb && typeof cb === "function" ) {
213
213
cb ( ) ;
214
214
}
0 commit comments