Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Correction for issue with select2 plugin #216

Merged
merged 1 commit into from Oct 4, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
@@ -20,9 +20,9 @@ angular.module('ui.directives').directive('uiSelect2', ['ui.config', '$http', fu
// Enable watching of the options dataset if in use
if (tElm.is('select')) {
- repeatOption = tElm.find('option[ng-repeat]');
+ repeatOption = tElm.find('option[ng-repeat], option[data-ng-repeat]');
if (repeatOption.length) {
- watch = repeatOption.attr('ng-repeat').split(' ').pop();
+ watch = (repeatOption.attr('ng-repeat') || repeatOption.attr('data-ng-repeat')).split(' ').pop();
}
}