From 65814f1e959d556eb3384764e57a70341933ca3c Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Thu, 10 Sep 2015 20:38:59 -0400 Subject: [PATCH] fix(datepicker): change to `$popup` --- src/datepicker/datepicker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datepicker/datepicker.js b/src/datepicker/datepicker.js index 4b0ec332d1..f72baec560 100644 --- a/src/datepicker/datepicker.js +++ b/src/datepicker/datepicker.js @@ -595,7 +595,7 @@ function($compile, $parse, $document, $rootScope, $position, dateFilter, datePar delete options.initDate; } angular.forEach(options, function(value, option) { - datepickerEl.attr( cameltoDash(option), value ); + datepickerEl.attr(cameltoDash(option), value); }); } @@ -715,7 +715,7 @@ function($compile, $parse, $document, $rootScope, $position, dateFilter, datePar }); var documentClickBind = function(event) { - if (scope.isOpen && !(element[0].contains(event.target) || popupEl[0].contains(event.target))) { + if (scope.isOpen && !(element[0].contains(event.target) || $popup[0].contains(event.target))) { scope.$apply(function() { scope.isOpen = false; });