From 9e0fa5b7c829fcc58a21ab9c3f0cf6492cf793af Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 25 Jan 2011 17:51:01 -0800 Subject: compile but don't bind option elements nested in a nameless select otherwise an exception is thrown unexpectidly --- src/widgets.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) -- cgit v1.2.3