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

Commit b67b96c

Browse files
Robert MesserleSplaktar
Robert Messerle
authored andcommitted
fix(tabs): prevents an error from being thrown if an empty attribute md-selected is added to md-tabs
Closes #3537
1 parent 9c9861e commit b67b96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/tabs/js/tabsController.js

+1-1
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)