Merge pull request #2380 from webzwo0i/fix-add-saved-revision-typo

fix typo in addSavedRevisions
This commit is contained in:
Marcel Klehr 2014-12-18 20:21:42 +01:00
commit 70dc5e7ed9
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ Pad.prototype.isPasswordProtected = function isPasswordProtected() {
Pad.prototype.addSavedRevision = function addSavedRevision(revNum, savedById, label) {
//if this revision is already saved, return silently
for(var i in this.savedRevisions){
if(this.savedRevisions.revNum === revNum){
if(this.savedRevisions[i] && this.savedRevisions[i].revNum === revNum){
return;
}
}