From c0647485362cb7a0692586c0e7b77fc662a52457 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Wed, 9 Sep 2015 05:08:55 -0400 Subject: [PATCH] chore(accordion): change to `!!` --- src/accordion/accordion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accordion/accordion.js b/src/accordion/accordion.js index 7684995198..8e6f870f2b 100644 --- a/src/accordion/accordion.js +++ b/src/accordion/accordion.js @@ -82,7 +82,7 @@ angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse']) scope.openClass = attrs.openClass || 'panel-open'; scope.panelClass = attrs.panelClass; scope.$watch('isOpen', function(value) { - element.toggleClass(scope.openClass, Boolean(value)); + element.toggleClass(scope.openClass, !!value); if (value) { accordionCtrl.closeOthers(scope); }