Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit f5cd5a0

Browse files
author
Robert Messerle
committed
fix(tabs): prevents an error from being thrown if an empty attribute md-selected is added to md-tabs
Closes #3537
1 parent c164ef0 commit f5cd5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/tabs/js/tabsController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $md
109109
function defineBinding (key, attr, defaultValue, handler) {
110110
var value = defaultValue, model;
111111
defineProperty(key, function (newValue, oldValue) {
112-
model && model.assign(ctrl.scope, newValue);
112+
model && model.assign && model.assign(ctrl.scope, newValue);
113113
handler(newValue, oldValue);
114114
}, value);
115115
if ($attrs.hasOwnProperty(attr)) {

0 commit comments

Comments
 (0)