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 23, 2014
1 parent ecba970 commit 6d839b3
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 @@ -316,7 +316,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 6d839b3

Please sign in to comment.