diff --git a/src/datepicker/datepicker.js b/src/datepicker/datepicker.js index c7f185e9ea..6116f139a9 100644 --- a/src/datepicker/datepicker.js +++ b/src/datepicker/datepicker.js @@ -325,7 +325,7 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst } }; - $scope.$on("$destroy", function() { + $scope.$on('$destroy', function() { //Clear all watch listeners on destroy while (watchListeners.length) { watchListeners.shift()();