From 696561188da1b1d8da915fd2223fc4209bcb90c5 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Sat, 29 Dec 2018 16:12:10 -0800 Subject: [PATCH] fixup! fix($compile): fix ng-prop-* with undefined values --- src/ng/compile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index bd1d627e5ccd..4afb7caee72a 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -3836,7 +3836,8 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { return { pre: function ngPropPreLinkFn(scope, $element) { function applyPropValue() { - $element[0][propName] = sanitizer(ngPropGetter(scope)); + var propValue = ngPropGetter(scope); + $element[0][propName] = sanitizer(propValue); } applyPropValue();