From 20bbd60054bac4f9fc758b450a3b4202d9f0ad03 Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Tue, 12 Jun 2018 15:12:15 +0200 Subject: [PATCH] Fix circle reference log (#71) The logger.debug cause circle reference issue when using microflow as a data source in Mendix 7.13.1 --- Gulpfile.js | 2 +- package-lock.json | 2 +- package.json | 4 ++-- src/calendar/widget/calendar.js | 4 ++-- src/package.xml | 4 ++-- test/widgets/calendar.mpk | Bin 336733 -> 336730 bytes 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 143a4fc..1bdf9fa 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -24,7 +24,7 @@ var pkg = require("./package.json"), paths = widgetBuilderHelper.generatePaths(pkg), xmlversion = widgetBuilderHelper.xmlversion; -gulp.task("default", function() { +gulp.task("default", ["compress"], function() { gulp.watch("./src/**/*", ["compress"]); gulp.watch("./src/**/*.js", ["copy:js"]); }); diff --git a/package-lock.json b/package-lock.json index 7e7e1cb..473ad8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "calendar", - "version": "5.3.2", + "version": "5.4.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9da0b5c..3c0eeb5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calendar", - "version": "5.4.1", + "version": "5.4.2", "description": "This is a calendar widget for Mendix. It shows a Calendar and can render objects as events in it.", "license": "Apache License, Version 2.0, January 2004", "author": "Mendix 2016", @@ -33,4 +33,4 @@ "folders": "node ./node_modules/gulp/bin/gulp folders", "modeler": "node ./node_modules/gulp/bin/gulp modeler" } -} \ No newline at end of file +} diff --git a/src/calendar/widget/calendar.js b/src/calendar/widget/calendar.js index 423349b..b2983bf 100644 --- a/src/calendar/widget/calendar.js +++ b/src/calendar/widget/calendar.js @@ -240,7 +240,7 @@ define([ this._fetchPaginatedEvents(view.start, view.end); } } else if (this.dataSourceType === "contextmf" && this.contextDatasourceMf) { - logger.debug(this.id + "._fetchObjects contextmf", this._mxObj); + logger.debug(this.id + "._fetchObjects contextmf"); if (this._mxObj) { this._execMF(this._mxObj, this.contextDatasourceMf, lang.hitch(this, this._prepareEvents)); } @@ -734,7 +734,7 @@ define([ action.origin = this.mxform; } - logger.debug(this.id + "._execMF", mf, action); + logger.debug(this.id + "._execMF", mf); mx.data.action(action, this); } else if (cb) { logger.debug(this.id + "._execMF: no microflow defined"); diff --git a/src/package.xml b/src/package.xml index 6a45a43..785705d 100644 --- a/src/package.xml +++ b/src/package.xml @@ -1,6 +1,6 @@ - + @@ -10,4 +10,4 @@ - \ No newline at end of file + diff --git a/test/widgets/calendar.mpk b/test/widgets/calendar.mpk index 59f1f4e6433d6bb2e2156cdc58dfcefd75a85d7d..f8a73c97075d828b093a4d6100dc99317b25464b 100644 GIT binary patch delta 6121 zcmZWtbySq^wjN@rp@xQ`5l|2qS^?>9a7dL95QgrCp<_T`1RUv-lI{{vk&uv*kWMK< zy5l1EoO^y}-EXaT?Rxg!-}AozJ+oaDQ(Y89+G<$X6aWAo08r)Lk0QEE$qy#t$4j1?DJ8B1Ye+pU4KIUXuCG(=#avXn7t2JRM8Hd^^j*C ze*WS&3qM$*9)}CH|52l>a>%f<{$Tsm8(&ZosAxhRy_XX9RGE`|(y@z8hbsU^TQ#|3 zhwp>8N>>G^+v(vfSVc5Ddpmu(A4>XwO3ucvCsGcT{*b?dUS;wDghlW3sLwZQf8zPo z3spWwgRHK5wBfB)u#;XVtx^~ZI{OdS0^8y+&90ZD?pAuU&$TwRy!J2{L~o+}UJg=# zMJ&oV54&jeJ{#HTk07gQj`j_L6izhRP1lm;G&IXQE=x?9AmZn-+3u+*eEpi zZB;!{nQ!%PDiI3ZAQSWGSC`6Z27H150AJqRUOE6R!wjUWQQ*hGLlC9}WzI&g(G0fL zLDVxIo$&j$4*iLW6T#>Z&rJ`tB+^X?+VS*TT8NAliub%QoKtP4CH?+cxRTz~_~5E5 zSimk@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