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

Commit 35e3fc5

Browse files
committed
bug fix: cannot watch a dotted property
use scope.$eval instead of scope[] in case `iAttrs.uiCodemirror` contains a dot.
1 parent c0fdb51 commit 35e3fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui-codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ angular.module('ui.codemirror', [])
5656

5757
updateOptions(opts);
5858

59-
if (angular.isDefined(scope[iAttrs.uiCodemirror])) {
59+
if (angular.isDefined(scope.$eval(iAttrs.uiCodemirror))) {
6060
scope.$watch(iAttrs.uiCodemirror, updateOptions, true);
6161
}
6262
// Specialize change event

0 commit comments

Comments
 (0)