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
  • Loading branch information
wesleycho committed Jun 27, 2015
1 parent eb3b32e commit 525c1ae
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 525c1ae

Please sign in to comment.