Skip to content

Commit

Permalink
Fix deprecations and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelte Lagendijk committed Feb 2, 2017
1 parent 71869d3 commit a4f4442
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LabelSelect",
"version": "4.4.0",
"version": "4.4.1",
"description": "With this widget you can easily create/assign/remove objects (for example labels) to/from an object.",
"license": "",
"author": "",
Expand Down
9 changes: 4 additions & 5 deletions src/LabelSelect/widget/LabelSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,8 @@ define([
params: {
applyto: "selection",
actionname: mf,
guids: [obj.getGuid()]
},
store: {
caller: this.mxform
guids: [obj.getGuid()],
origin: this.mxform
},
callback: function() {
if (cb && typeof cb === "function") {
Expand Down Expand Up @@ -272,7 +270,8 @@ define([

_saveObject: function() {
logger.debug(this.id + "._saveObject");
mx.data.save({
var method = (!mx.version || mx.version && parseInt(mx.version.split(".")[0]) < 7) ? "save" : "commit";
mx.data[method]({
mxobj: this._contextObj,
callback: lang.hitch(this, function() {
this._execMf(this._contextObj, this.onchangemf);
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="LabelSelect" version="4.4.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="LabelSelect" version="4.4.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="LabelSelect/LabelSelect.xml"/>
</widgetFiles>
Expand Down
Binary file modified test/widgets/LabelSelect.mpk
Binary file not shown.

0 comments on commit a4f4442

Please sign in to comment.