mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
compile but don't bind option elements nested in a nameless select
otherwise an exception is thrown unexpectidly
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user