aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets.js')
-rw-r--r--src/widgets.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets.js b/src/widgets.js
index f90b29a9..cf65cd40 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -545,6 +545,10 @@ angularWidget('option', function(){
var isMultiple = select[0].type == 'select-multiple';
var scope = retrieveScope(select);
var model = modelAccessor(scope, select);
+
+ //if parent select doesn't have a name, don't bother doing anything any more
+ if (!model) return;
+
var formattedModel = modelFormattedAccessor(scope, select);
var view = isMultiple
? optionsAccessor(scope, select)