From 19118f162eb8b244984761ae1f3e40be49f4d6fa Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Thu, 24 Sep 2015 15:57:44 +0200 Subject: [PATCH] refactor(buttons): match general style Closes #4465 --- src/buttons/buttons.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/buttons/buttons.js b/src/buttons/buttons.js index 5650333d58..e895e0d305 100644 --- a/src/buttons/buttons.js +++ b/src/buttons/buttons.js @@ -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