Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 4b56382

Browse files
committed
fix(alert): adjust check for close attribute
- Adjust check due to change in Angular 1.4 where the presence of attribute gives key value of `undefined`, causing variable to contain incorrect truthiness
1 parent eb3b32e commit 4b56382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/alert/alert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
angular.module('ui.bootstrap.alert', [])
22

33
.controller('AlertController', ['$scope', '$attrs', function ($scope, $attrs) {
4-
$scope.closeable = 'close' in $attrs;
4+
$scope.closeable = !!$attrs.close;
55
this.close = $scope.close;
66
}])
77

0 commit comments

Comments
 (0)