Fix for case where revisions list doesn't yet exist.
This commit is contained in:
parent
384ff85f86
commit
1875f1ed00
|
@ -1141,7 +1141,7 @@ Wiki.prototype.toggle_editor_changes = function ( event, editor ) {
|
||||||
event.stop();
|
event.stop();
|
||||||
|
|
||||||
// if there's already a cached revision list, display the changes pulldown with it
|
// if there's already a cached revision list, display the changes pulldown with it
|
||||||
if ( editor.revisions_list.length > 0 ) {
|
if ( editor.revisions_list && editor.revisions_list.length > 0 ) {
|
||||||
new Changes_pulldown( this, this.notebook_id, this.invoker, editor );
|
new Changes_pulldown( this, this.notebook_id, this.invoker, editor );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue