Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 5dac513

Browse files
committed
Set the options before watching the ace options
1 parent 2bbe603 commit 5dac513

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ui-ace.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ angular.module('ui.ace', [])
151151
};
152152
}
153153

154+
// set the options here, even if we try to watch later, if this
155+
// line is missing things go wrong (and the tests will also fail)
156+
setOptions(acee, session, opts);
157+
154158
// Listen for option updates
155159
scope.$watch( attrs.uiAce, function() {
156160
opts = angular.extend({}, options, scope.$eval(attrs.uiAce));

0 commit comments

Comments
 (0)