Skip to content

Commit bdbd0a1

Browse files
committed
Little fix with usage on an Listen-To setup
1 parent ecfe951 commit bdbd0a1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/DataviewLoader/widget/DataviewLoader.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ define([
7272

7373
this._contextObj = obj;
7474
this._resetSubscriptions();
75-
this._updateRendering(callback); // We're passing the callback to updateRendering to be called after DOM-manipulation
75+
this. _updateRendering(callback); // We're passing the callback to updateRendering to be called after DOM-manipulation
7676
} else {
7777
// The callback, coming from update, needs to be executed, to let the page know it finished rendering
7878
this._executeCallback(callback, "update");
@@ -115,7 +115,7 @@ define([
115115

116116
// Attach events to HTML dom elements
117117
_setupEvents: function () {
118-
logger.debug(this.id + "._setupEvents");
118+
//logger.debug(this.id + "._setupEvents");
119119
},
120120

121121
// Rerender the interface.
@@ -129,14 +129,14 @@ define([
129129
if(this.fadeContent){
130130
dojoClass.add(this.divContent, "loaderfade");
131131
}
132+
133+
if (this.domNode.offsetParent !== null || !this.visibilityCheck) {
134+
this._loadAndShowcontent();
135+
}
132136
}
133137

134138
// The callback, coming from update, needs to be executed, to let the page know it finished rendering
135139
this._executeCallback(callback, "_updateRendering");
136-
137-
if (this.domNode.offsetParent !== null && this.visibilityCheck) {
138-
this._loadAndShowcontent();
139-
}
140140
},
141141

142142
_loadAndShowcontent: function () {

src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="DataviewLoader" version="1.6.1" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="DataviewLoader" version="1.6.2" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="DataviewLoader/DataviewLoader.xml" />
66
</widgetFiles>

test/widgets/DataviewLoader.mpk

21 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)