Merge pull request #2380 from webzwo0i/fix-add-saved-revision-typo
fix typo in addSavedRevisions
This commit is contained in:
commit
70dc5e7ed9
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue