fix broken build for IE. Read option.type==select-multiple rather then check presence of multiple attribute

This commit is contained in:
Misko Hevery 2011-01-18 15:00:16 -08:00
parent 459a01e582
commit 5be92f7b9c

View file

@ -542,7 +542,7 @@ angularWidget('option', function(){
this.directives(true);
return function(option) {
var select = option.parent();
var isMultiple = select.attr('multiple') == '';
var isMultiple = select[0].type == 'select-multiple';
var scope = retrieveScope(select);
var model = modelAccessor(scope, select);
var formattedModel = modelFormattedAccessor(scope, select);