Commit cff8e68 1 parent 621c68a commit cff8e68 Copy full SHA for cff8e68
File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -298,8 +298,7 @@ define([
298
298
if ( symbol ) {
299
299
graphic = new Graphic ( feature . geometry , symbol , feature . attributes ) ;
300
300
if ( this . infoTemplate ) {
301
- var infoTemplate = new PopupTemplate ( this . infoTemplate ) ;
302
- graphic . setInfoTemplate ( infoTemplate ) ;
301
+ graphic . setInfoTemplate ( this . infoTemplate ) ;
303
302
}
304
303
this . featureGraphics . add ( graphic ) ;
305
304
}
@@ -351,8 +350,7 @@ define([
351
350
if ( symbol ) {
352
351
graphic = new Graphic ( feature . geometry , symbol , feature . attributes ) ;
353
352
if ( this . infoTemplate ) {
354
- var infoTemplate = new PopupTemplate ( this . infoTemplate ) ;
355
- graphic . setInfoTemplate ( infoTemplate ) ;
353
+ graphic . setInfoTemplate ( this . infoTemplate ) ;
356
354
}
357
355
this . selectedGraphics . add ( graphic ) ;
358
356
}
You can’t perform that action at this time.
0 commit comments