Skip to content

Commit 7ade3c8

Browse files
author
Jelte Lagendijk
committed
Fixed mx.data.action --> mx.ui.action
1 parent aaeaa6b commit 7ade3c8

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

src/HTMLSnippet/widget/HTMLSnippet.js

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ define([
8484

8585
if (this.refreshOnContextUpdate) {
8686
if (this._objectChangeHandler !== null) {
87-
mx.data.unsubscribe(this._objectChangeHandler);
87+
this.unsubscribe(this._objectChangeHandler);
8888
}
8989
if (obj) {
90-
this._objectChangeHandler = mx.data.subscribe({
90+
this._objectChangeHandler = this.subscribe({
9191
guid: obj.getGuid(),
9292
callback: lang.hitch(this, function() {
9393
this.executeCode();
@@ -110,20 +110,7 @@ define([
110110
_executeMicroflow: function() {
111111
logger.debug(this.id + "._executeMicroflow");
112112
if (this.onclickmf) {
113-
mx.data.action({
114-
store: {
115-
caller: this.mxform
116-
},
117-
params: {
118-
actionname: this.onclickmf,
119-
},
120-
callback: function() {
121-
// ok
122-
},
123-
error: function() {
124-
// error
125-
}
126-
});
113+
mx.ui.action(this.onclickmf, {}, this);
127114
}
128115
},
129116

test/Test.mpr

0 Bytes
Binary file not shown.

test/widgets/HTMLSnippet.mpk

-60 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)