Skip to content

Commit

Permalink
Merge pull request yalabot#245 from dbartholomae/master
Browse files Browse the repository at this point in the history
Fixed that alert is always "closeable" due to change in angularjs 1.4
  • Loading branch information
jbrowning committed Jul 27, 2015
2 parents 03e376e + 0a3bbcd commit ab9542f
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("mm.foundation.alert", [])

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

.directive('alert', function () {
Expand Down

0 comments on commit ab9542f

Please sign in to comment.