this._markers = []; for(var p in this.markers){ this._markers.push(this.markers[p]); } // reset the position this._current.marker=0;