@@ -35,7 +35,7 @@ define([
3535 contextObj : null ,
3636
3737 postCreate : function ( ) {
38- logger . debug ( this . id + ".postCreate" ) ;
38+ mx . logger . debug ( this . id + ".postCreate" ) ;
3939 this . _setupEvents ( ) ;
4040
4141 if ( ! this . refreshOnContextChange ) {
@@ -44,7 +44,7 @@ define([
4444 } ,
4545
4646 executeCode : function ( ) {
47- logger . debug ( this . id + ".executeCode" ) ;
47+ mx . logger . debug ( this . id + ".executeCode" ) ;
4848 var external = this . contentsPath !== "" ? true : false ;
4949 switch ( this . contenttype ) {
5050 case "html" :
@@ -99,7 +99,7 @@ define([
9999 } ,
100100
101101 update : function ( obj , callback ) {
102- logger . debug ( this . id + ".update" ) ;
102+ mx . logger . debug ( this . id + ".update" ) ;
103103 this . contextObj = obj ;
104104 if ( this . refreshOnContextChange ) {
105105 this . executeCode ( ) ;
@@ -123,7 +123,7 @@ define([
123123 } ,
124124
125125 _setupEvents : function ( ) {
126- logger . debug ( this . id + "._setupEvents" ) ;
126+ mx . logger . debug ( this . id + "._setupEvents" ) ;
127127 if ( this . onclickmf ) {
128128 this . connect (
129129 this . domNode ,
@@ -134,7 +134,7 @@ define([
134134 } ,
135135
136136 _executeMicroflow : function ( ) {
137- logger . debug ( this . id + "._executeMicroflow" ) ;
137+ mx . logger . debug ( this . id + "._executeMicroflow" ) ;
138138 if ( this . onclickmf ) {
139139 var params = { } ;
140140 if ( this . contextObj !== null ) {
@@ -145,12 +145,12 @@ define([
145145 this . onclickmf , {
146146 params : params ,
147147 callback : function ( obj ) {
148- logger . debug (
148+ mx . logger . debug (
149149 this . id + " (executed microflow successfully)."
150150 ) ;
151151 } ,
152152 error : function ( error ) {
153- logger . error ( this . id + error ) ;
153+ mx . logger . error ( this . id + error ) ;
154154 }
155155 } ,
156156 this
@@ -159,7 +159,7 @@ define([
159159 } ,
160160
161161 evalJs : function ( ) {
162- logger . debug ( this . id + ".evalJS" ) ;
162+ mx . logger . debug ( this . id + ".evalJS" ) ;
163163 try {
164164 eval ( this . contents + "\r\n//# sourceURL=" + this . id + ".js" ) ;
165165 } catch ( error ) {
@@ -168,7 +168,7 @@ define([
168168 } ,
169169
170170 _evalJQueryCode : function ( ) {
171- logger . debug ( this . id + "._evalJQueryCode" ) ;
171+ mx . logger . debug ( this . id + "._evalJQueryCode" ) ;
172172 require ( [ "jquery" ] , lang . hitch ( this , function ( jQuery ) {
173173 try {
174174 ( function ( snippetCode ) {
@@ -198,7 +198,7 @@ define([
198198 } ,
199199
200200 _handleError : function ( error ) {
201- logger . debug ( this . id + "._handleError" ) ;
201+ mx . logger . debug ( this . id + "._handleError" ) ;
202202 domConstruct . place (
203203 '<div class="alert alert-danger">Error while evaluating javascript input: ' +
204204 error +
@@ -209,7 +209,7 @@ define([
209209 } ,
210210
211211 _executeCallback : function ( cb , from ) {
212- logger . debug ( this . id + "._executeCallback" + ( from ? " from " + from : "" ) ) ;
212+ mx . logger . debug ( this . id + "._executeCallback" + ( from ? " from " + from : "" ) ) ;
213213 if ( cb && typeof cb === "function" ) {
214214 cb ( ) ;
215215 }
0 commit comments