AnsweredAssumed Answered

lang.clone === error? when copying esri graphic

Question asked by JerryGarcia on Jan 15, 2015
Latest reply on May 19, 2015 by manehari1

I get the following error when trying to clone a grahic:

Uncaught TypeError: Cannot read property 'path' of null


If I cannot use Dojo lang.clone to copy a graphic, then can someone provide some sample code to do this?


I need to make a copy of a graphic, change it's name attribute, and add it to a FeatureLayer.