Skip to content

Commit ba10464

Browse files
contentRendered trigger argument fix
1 parent 0e0082a commit ba10464

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.6.0",
4+
"version": "1.6.1",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ lp.updateSizes(); // recalculate pivot sizes
9696
lp.changeBasicMDX("..."); // change mdx for LPT
9797
lp.getActualMDX(); // returns currently displayed MDX
9898
lp.getSelectedRows(); // returns array with selected rows indexes. First row have index 1.
99-
lp.attachTrigger("contentRendered", function (lpInstance) { }); // attaches trigger during runtime
99+
lp.attachTrigger("contentRendered", function (lptInstance) { }); // attaches trigger during runtime
100100
lp.setRowCount(5); // sets the number of rows to display
101101

102102
// Additional calls:

source/js/PivotView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ PivotView.prototype.renderRawData = function (data) {
15741574
}
15751575

15761576
if (typeof this.controller.CONFIG.triggers.contentRendered === "function") {
1577-
this.controller.CONFIG.triggers.contentRendered();
1577+
this.controller.CONFIG.triggers.contentRendered(this.controller);
15781578
}
15791579

15801580
};

0 commit comments

Comments
 (0)