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

Commit

Permalink
fix(tabs): prevents an error from being thrown if an empty attribute …
Browse files Browse the repository at this point in the history
…`md-selected` is added to `md-tabs`

Closes #3537
  • Loading branch information
Robert Messerle committed Jul 1, 2015
1 parent c164ef0 commit f5cd5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/js/tabsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $md
function defineBinding (key, attr, defaultValue, handler) {
var value = defaultValue, model;
defineProperty(key, function (newValue, oldValue) {
model && model.assign(ctrl.scope, newValue);
model && model.assign && model.assign(ctrl.scope, newValue);
handler(newValue, oldValue);
}, value);
if ($attrs.hasOwnProperty(attr)) {
Expand Down

0 comments on commit f5cd5a0

Please sign in to comment.