AnsweredAssumed Answered

"update-end" event returns error but "onUpdateEnd" event doesn't

Question asked by kenbuja on Jun 26, 2013
Latest reply on Jun 28, 2013 by JGravois-esristaff
I have converted the code from using the "onUpdateEnd" event on an ArcGISDynamicMapServiceLayer to the class.on style event
 //before     connect.connect(layer, "onUpdateEnd", function (error) {         if (error) {             alert("Update complete with error: " & error);         }      });  //after     layer.on("update-end", function (error) {         if (error) {             alert("Update complete with error: " & error);         }      });


I am now getting an error returned for this event. I have created a Fiddle that shows this. Running the code with the "connect.connect" line (line 44) un-commented does not return an error, while the "layer.on" line (line 43) un-commented returns the error. Why is the error returned using this syntax?

Outcomes