updated to arcgis js api 3.4