Skip to content

Commit cff8e68

Browse files
committed
remove the use of PopUpTemplate class for infoTemplaces. Fixes #28
1 parent 621c68a commit cff8e68

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

widgets/AttributesTable/_GraphicsMixin.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ define([
298298
if (symbol) {
299299
graphic = new Graphic(feature.geometry, symbol, feature.attributes);
300300
if (this.infoTemplate) {
301-
var infoTemplate = new PopupTemplate(this.infoTemplate);
302-
graphic.setInfoTemplate(infoTemplate);
301+
graphic.setInfoTemplate(this.infoTemplate);
303302
}
304303
this.featureGraphics.add(graphic);
305304
}
@@ -351,8 +350,7 @@ define([
351350
if (symbol) {
352351
graphic = new Graphic(feature.geometry, symbol, feature.attributes);
353352
if (this.infoTemplate) {
354-
var infoTemplate = new PopupTemplate(this.infoTemplate);
355-
graphic.setInfoTemplate(infoTemplate);
353+
graphic.setInfoTemplate(this.infoTemplate);
356354
}
357355
this.selectedGraphics.add(graphic);
358356
}

0 commit comments

Comments
 (0)