From 1875f1ed00cb73090e247cb71df92f32beb2aa5a Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 11 Oct 2007 10:07:27 +0000 Subject: [PATCH] Fix for case where revisions list doesn't yet exist. --- static/js/Wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 76a2c9a..22dcf32 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -1141,7 +1141,7 @@ Wiki.prototype.toggle_editor_changes = function ( event, editor ) { event.stop(); // 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 ); return; }