Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 3512edb

Browse files
committed
Removed this.onSelect that was causing issues
Removed ancient mx3 update rewrite that is no longer needed.
1 parent 130354e commit 3512edb

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

src/TreeView/widget/GridView.js

+10-14
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ mxui.widget.declare("TreeView.widget.GridView", {
228228
error : this.showError
229229
}, this);
230230
}
231-
232-
this.onSelect(item);
233231
},
234232

235233
hasSelection : function() {
@@ -448,18 +446,16 @@ mxui.widget.declare("TreeView.widget.GridView", {
448446
/**
449447
called by mxclient whenever context is replaced
450448
*/
451-
update : function(data, cb) {
452-
TreeView.widget.Commons.normalizeContext(data, dojo.hitch(this, function(object, guid) {
453-
//use the new context
454-
this.contextObject = object;
455-
this.contextGUID = guid;
456-
this.listenToContext();
457-
458-
//reload
459-
this.resetAndFetchAll(dojo.hitch(this, this.updateSelectionFromContext));
460-
}));
461-
462-
cb && cb();
449+
update : function(obj, cb) {
450+
//use the new context
451+
this.contextObject = obj;
452+
this.contextGUID = obj.getGuid();
453+
this.listenToContext();
454+
455+
//reload
456+
this.resetAndFetchAll(dojo.hitch(this, this.updateSelectionFromContext));
457+
458+
cb();
463459
},
464460

465461
suspended : function() {

test/widgets/TreeView.mpk

-23 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)