diff options
| author | Igor Minar | 2011-01-25 17:51:01 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-01-25 20:49:25 -0800 |
| commit | 9e0fa5b7c829fcc58a21ab9c3f0cf6492cf793af (patch) | |
| tree | 8dd2090d00c25500df2655fc346f8c9715717857 /src/widgets.js | |
| parent | 9368ea38141b8fda1524fdc34c38ecee16ee2afe (diff) | |
| download | angular.js-9e0fa5b7c829fcc58a21ab9c3f0cf6492cf793af.tar.bz2 | |
compile but don't bind option elements nested in a nameless select
otherwise an exception is thrown unexpectidly
Diffstat (limited to 'src/widgets.js')
| -rw-r--r-- | src/widgets.js | 4 |
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) |
