Browse Source

Set CircleImageBase.imageObjAlt always when options change (#3053)

gemini
wimrijnders 7 years ago
committed by yotamberk
parent
commit
167398063e
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      lib/network/modules/components/nodes/util/CircleImageBase.js

+ 6
- 6
lib/network/modules/components/nodes/util/CircleImageBase.js View File

@ -26,12 +26,12 @@ class CircleImageBase extends NodeBase {
}
setImages(imageObj, imageObjAlt) {
if (imageObj) {
this.imageObj = imageObj;
if (imageObjAlt) {
this.imageObjAlt = imageObjAlt;
}
if (imageObjAlt && this.selected) {
this.imageObj = imageObjAlt;
this.imageObjAlt = imageObj;
} else {
this.imageObj = imageObj;
this.imageObjAlt = imageObjAlt;
}
}

Loading…
Cancel
Save