Skip to content

Commit

Permalink
refactor($compile): use createMap shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Oct 9, 2014
1 parent 3f6b380 commit 5030707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
*/
$observe: function(key, fn) {
var attrs = this,
$$observers = (attrs.$$observers || (attrs.$$observers = Object.create(null))),
$$observers = (attrs.$$observers || (attrs.$$observers = createMap())),
listeners = ($$observers[key] || ($$observers[key] = []));

listeners.push(fn);
Expand Down

0 comments on commit 5030707

Please sign in to comment.