File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ function AceDiff(options) {
106106 editorHeight : null ,
107107 } ;
108108
109- addEventHandlers ( this ) ;
109+
110110
111111 // set up the editors
112112 this . editors . left . ace . getSession ( ) . setMode ( getMode ( this , C . EDITOR_LEFT ) ) ;
@@ -116,9 +116,6 @@ function AceDiff(options) {
116116 this . editors . left . ace . setTheme ( getTheme ( this , C . EDITOR_LEFT ) ) ;
117117 this . editors . right . ace . setTheme ( getTheme ( this , C . EDITOR_RIGHT ) ) ;
118118
119- createCopyContainers ( this ) ;
120- createGutter ( this ) ;
121-
122119 this . editors . left . ace . setValue ( normalizeContent ( this . options . left . content ) , - 1 ) ;
123120 this . editors . right . ace . setValue ( normalizeContent ( this . options . right . content ) , - 1 ) ;
124121
@@ -131,6 +128,9 @@ function AceDiff(options) {
131128 // assumption: both editors have same line heights
132129 this . lineHeight = this . editors . left . ace . renderer . lineHeight ;
133130
131+ addEventHandlers ( this ) ;
132+ createCopyContainers ( this ) ;
133+ createGutter ( this ) ;
134134 this . diff ( ) ;
135135 } , 1 ) ;
136136}
You can’t perform that action at this time.
0 commit comments