From 54169f36fb237f4e58d8a8e2ac02d7fa94cf4d00 Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Wed, 28 Aug 2019 09:26:03 +0200 Subject: [PATCH] Fix subscribtion --- package-lock.json | 2 +- package.json | 2 +- src/LabelSelect/widget/LabelSelect.js | 4 +--- src/package.xml | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 807079c..935d523 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "LabelSelect", - "version": "4.5.2", + "version": "4.5.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bc488c8..d987efb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "LabelSelect", - "version": "4.5.2", + "version": "4.5.3", "description": "With this widget you can easily create/assign/remove objects (for example labels) to/from an object.", "license": "Apache-2", "author": "", diff --git a/src/LabelSelect/widget/LabelSelect.js b/src/LabelSelect/widget/LabelSelect.js index d0b98ec..6252ce2 100644 --- a/src/LabelSelect/widget/LabelSelect.js +++ b/src/LabelSelect/widget/LabelSelect.js @@ -54,12 +54,10 @@ define([ domConstruct.place(this._listBox, this.domNode); this._constructed = true; } - + this._contextObj = obj; this._resetSubscriptions(); if (obj) { domStyle.set(this.domNode, "visibility", "visible"); - - this._contextObj = obj; this._fetchCurrentLabels(callback); } else { domStyle.set(this.domNode, "visibility", "hidden"); diff --git a/src/package.xml b/src/package.xml index fd527bf..7c4afc5 100644 --- a/src/package.xml +++ b/src/package.xml @@ -1,6 +1,6 @@ - +