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

Commit

Permalink
fix(alert): adjust check for close attribute
Browse files Browse the repository at this point in the history
- 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

Closes #3864
Closes #3890
Fixes #3848
  • Loading branch information
wesleycho committed Jul 5, 2015
1 parent 0286828 commit 13a0354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alert/alert.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
angular.module('ui.bootstrap.alert', [])

.controller('AlertController', ['$scope', '$attrs', function ($scope, $attrs) {
$scope.closeable = 'close' in $attrs;
$scope.closeable = !!$attrs.close;
this.close = $scope.close;
}])

Expand Down

0 comments on commit 13a0354

Please sign in to comment.