@@ -30,26 +30,13 @@ define([
3030 this . _resetSubscriptions ( ) ;
3131 this . _updateRendering ( callback ) ;
3232 } else {
33- callback ( ) ;
34- }
35- } ,
36-
37- applyContext : function ( context , callback ) {
38- logger . debug ( this . id + ".applyContext" ) ;
39- if ( context && ! ! context . getTrackId ( ) ) {
40- var obj = context . getTrackObject ( ) ;
41- if ( obj !== null ) {
42- this . _contextObj = obj ;
43- this . _updateRendering ( callback ) ;
44- } else {
45- mx . data . get ( {
46- guid : context . getTrackId ( ) ,
47- callback : function ( obj ) {
48- this . _contextObj = obj ;
49- this . _updateRendering ( callback ) ;
50- }
51- } , this ) ;
52- }
33+ mx . data . get ( {
34+ guid : this . mxcontext . getTrackId ( ) ,
35+ callback : function ( obj ) {
36+ this . _contextObj = obj ;
37+ this . _updateRendering ( callback ) ;
38+ }
39+ } , this ) ;
5340 }
5441 } ,
5542
@@ -153,24 +140,26 @@ define([
153140 } ,
154141
155142 _execClick : function ( index ) {
143+ logger . debug ( this . id + "._execClick" ) ;
156144 if ( this . _contextObj !== null && this . imageNode ) {
157- if ( this . clickmicroflow !== "" )
158- {
145+ if ( this . clickmicroflow !== "" ) {
159146 mx . data . action ( {
160147 params : {
161148 applyto : "selection" ,
162149 actionname : this . clickmicroflow ,
163150 guids : [ this . _contextObj . getGuid ( ) ]
164151 } ,
152+ store : {
153+ caller : this . mxform
154+ } ,
165155 callback : function ( obj ) {
166156 } ,
167157 error : function ( error ) {
168158 console . error ( this . id + "error: XAS error executing microflow" ) ;
169159 }
170160 } ) ;
171161 }
172- if ( this . linkattr !== "" )
173- {
162+ if ( this . linkattr !== "" ) {
174163 var url = this . _contextObj . get ( this . linkattr ) ;
175164 if ( url !== "" && url !== undefined && url !== null ) {
176165 window . open ( url , this . linktarget ) ;
0 commit comments