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

Commit

Permalink
refactor(buttons): match general style
Browse files Browse the repository at this point in the history
Closes #4465
  • Loading branch information
Foxandxss authored and wesleycho committed Sep 24, 2015
1 parent ec6c0bc commit 19118f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/buttons/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ angular.module('ui.bootstrap.buttons', [])
return getCheckboxValue(attrs.btnCheckboxFalse, false);
}

function getCheckboxValue(attributeValue, defaultValue) {
var val = scope.$eval(attributeValue);
return angular.isDefined(val) ? val : defaultValue;
function getCheckboxValue(attribute, defaultValue) {
return angular.isDefined(attribute) ? scope.$eval(attribute) : defaultValue;
}

//model -> UI
Expand Down

0 comments on commit 19118f1

Please sign in to comment.