Skip to content

Commit

Permalink
fixed bug with id and index
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmiles committed Jun 20, 2014
1 parent 6981f2c commit cb8ca33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/realtime-client-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ rtclient.RealtimeLoader.prototype.redirectTo = function(fileIds, userId) {
// We are still here that means the page didn't reload.
rtclient.params = rtclient.getParams();
for (var id in fileIds) {
gapi.drive.realtime.load(fileIds[index], this.onFileLoaded, this.initializeModel, this.handleErrors);
gapi.drive.realtime.load(fileIds[id], this.onFileLoaded, this.initializeModel, this.handleErrors);
}
}

Expand Down

0 comments on commit cb8ca33

Please sign in to comment.