Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5030707

Browse files
committed
refactor($compile): use createMap shortcut
1 parent 3f6b380 commit 5030707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
10681068
*/
10691069
$observe: function(key, fn) {
10701070
var attrs = this,
1071-
$$observers = (attrs.$$observers || (attrs.$$observers = Object.create(null))),
1071+
$$observers = (attrs.$$observers || (attrs.$$observers = createMap())),
10721072
listeners = ($$observers[key] || ($$observers[key] = []));
10731073

10741074
listeners.push(fn);

0 commit comments

Comments
 (0)