Skip to content

Commit b53ef9b

Browse files
committed
refactor($parse): remove scope null check on input watchers
1 parent 780158f commit b53ef9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ng/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ ASTCompiler.prototype = {
904904
ensureSafeMemberName(ast.name);
905905
self.unless(self.stage !== 'inputs' && self.getHasOwnProperty('l', ast.name),
906906
function() {
907-
self.if('s', function() {
907+
self.if(self.stage === 'inputs' || 's', function() {
908908
if (create && create !== 1) {
909909
self.if(
910910
self.not(self.getHasOwnProperty('s', ast.name)),

0 commit comments

Comments
 (0)