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?