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

Commit

Permalink
fix(buttons): change to use attrs.disabled
Browse files Browse the repository at this point in the history
- Change to use `attrs.disabled`

Fixes #4088
  • Loading branch information
wesleycho committed Aug 4, 2015
1 parent 707fbf5 commit c9b0d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buttons/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ angular.module('ui.bootstrap.buttons', [])

//ui->model
element.bind(buttonsCtrl.toggleEvent, function () {
if ('disabled' in attrs) {
if (attrs.disabled) {
return;
}

Expand Down

0 comments on commit c9b0d0b

Please sign in to comment.