Skip to content

Commit f8ef93c

Browse files
committed
Merge pull request #125 from a-lucas/master
fixes #61
2 parents 25d1693 + 9991407 commit f8ef93c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tabs/tabs.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,11 @@ angular.module('mm.foundation.tabs', [])
201201
}
202202

203203
scope.$watch('active', function(active) {
204+
if( !angular.isFunction(setActive) ){
205+
return;
206+
}
204207
// Note this watcher also initializes and assigns scope.active to the
205-
// attrs.active expression.
208+
// attrs.active expression.
206209
setActive(scope.$parent, active);
207210
if (active) {
208211
tabsetCtrl.select(scope);

0 commit comments

Comments
 (0)