Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 409d1a6

Browse files
committed
Merge branch '43081j-fix-timeout-undefined'
Closes #86
2 parents 9e217c9 + 744bff1 commit 409d1a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ui-codemirror.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ function uiCodemirrorDirective($timeout, uiCodemirrorConfig) {
140140
scope.$watch(uiRefreshAttr, function(newVal, oldVal) {
141141
// Skip the initial watch firing
142142
if (newVal !== oldVal) {
143-
$timeout(codeMirror.refresh);
143+
$timeout(function() {
144+
codeMirror.refresh();
145+
});
144146
}
145147
});
146148
}

0 commit comments

Comments
 (0)