File tree Expand file tree Collapse file tree 4 files changed +24
-11
lines changed
Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " ChartJS" ,
3- "version" : " 3.5.2 " ,
3+ "version" : " 3.5.3 " ,
44 "description" : " This widget is a wrapper for the ChartJS library and you can use it to visualize your aggregated data." ,
55 "license" : " Apache License, Version 2" ,
66 "author" : " Mendix" ,
77 "private" : true ,
8- "dependencies" : {
9- },
8+ "dependencies" : {},
109 "devDependencies" : {
1110 "del" : " ^2.2.2" ,
1211 "gulp" : " ^3.9.1" ,
3433 "folders" : " node ./node_modules/gulp/bin/gulp folders" ,
3534 "modeler" : " node ./node_modules/gulp/bin/gulp modeler"
3635 }
37- }
36+ }
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ define([
162162 domStyle . set ( this . domNode , "display" , "none" ) ;
163163 }
164164
165- mendix . lang . nullExec ( callback ) ;
165+ this . _executeCallback ( callback , "update" ) ;
166166 } ,
167167
168168 _loadData : function ( ) {
@@ -634,11 +634,8 @@ define([
634634 _params . guids = [ obj . getGuid ( ) ] ;
635635 }
636636
637- mx . data . action ( {
637+ var mfAction = {
638638 params : _params ,
639- store : {
640- caller : this . mxform
641- } ,
642639 callback : lang . hitch ( this , function ( obj ) {
643640 if ( typeof callback === "function" ) {
644641 callback ( obj ) ;
@@ -647,7 +644,24 @@ define([
647644 error : lang . hitch ( this , function ( error ) {
648645 console . log ( this . id + "._executeMicroflow error: " + error . description ) ;
649646 } )
650- } , this ) ;
647+ } ;
648+
649+ if ( ! mx . version || mx . version && parseInt ( mx . version . split ( "." ) [ 0 ] ) < 6 ) {
650+ mfAction . store = {
651+ caller : this . mxform
652+ } ;
653+ } else {
654+ mfAction . origin = this . mxform ;
655+ }
656+
657+ mx . data . action ( mfAction , this ) ;
658+ } ,
659+
660+ _executeCallback : function ( cb , from ) {
661+ logger . debug ( this . id + "._executeCallback" + ( from ? " from " + from : "" ) ) ;
662+ if ( cb && typeof cb === "function" ) {
663+ cb ( ) ;
664+ }
651665 }
652666
653667 } ) ;
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<package xmlns =" http://www.mendix.com/package/1.0/" >
3- <clientModule name =" ChartJS" version =" 3.5.2 " xmlns =" http://www.mendix.com/clientModule/1.0/" >
3+ <clientModule name =" ChartJS" version =" 3.5.3 " xmlns =" http://www.mendix.com/clientModule/1.0/" >
44 <widgetFiles >
55 <widgetFile path =" ChartJS/widgets/BarChart/BarChart.xml" />
66 <widgetFile path =" ChartJS/widgets/LineChart/LineChart.xml" />
You can’t perform that action at this time.
0 commit comments