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) {
106
106
editorHeight : null ,
107
107
} ;
108
108
109
- addEventHandlers ( this ) ;
109
+
110
110
111
111
// set up the editors
112
112
this . editors . left . ace . getSession ( ) . setMode ( getMode ( this , C . EDITOR_LEFT ) ) ;
@@ -116,9 +116,6 @@ function AceDiff(options) {
116
116
this . editors . left . ace . setTheme ( getTheme ( this , C . EDITOR_LEFT ) ) ;
117
117
this . editors . right . ace . setTheme ( getTheme ( this , C . EDITOR_RIGHT ) ) ;
118
118
119
- createCopyContainers ( this ) ;
120
- createGutter ( this ) ;
121
-
122
119
this . editors . left . ace . setValue ( normalizeContent ( this . options . left . content ) , - 1 ) ;
123
120
this . editors . right . ace . setValue ( normalizeContent ( this . options . right . content ) , - 1 ) ;
124
121
@@ -131,6 +128,9 @@ function AceDiff(options) {
131
128
// assumption: both editors have same line heights
132
129
this . lineHeight = this . editors . left . ace . renderer . lineHeight ;
133
130
131
+ addEventHandlers ( this ) ;
132
+ createCopyContainers ( this ) ;
133
+ createGutter ( this ) ;
134
134
this . diff ( ) ;
135
135
} , 1 ) ;
136
136
}
You can’t perform that action at this time.
0 commit comments