diff options
Diffstat (limited to 'src/widgets.js')
| -rw-r--r-- | src/widgets.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets.js b/src/widgets.js index 4a2820c9..4bd7654f 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -733,7 +733,7 @@ angularWidget('select', function(element){ var optionGroup, collection = valuesFn(scope) || [], key = selectElement.val(), - tempScope = scope.$new(), + tempScope = inherit(scope), value, optionElement, index, groupIndex, length, groupLength; try { @@ -791,7 +791,7 @@ angularWidget('select', function(element){ fragment, groupIndex, index, optionElement, - optionScope = scope.$new(), + optionScope = inherit(scope), modelValue = model.get(), selected, selectedSet = false, // nothing is selected yet |
