Skip to content

Commit

Permalink
Fixes angular-ui#1208 matching and hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl authored and pgrm committed Nov 3, 2015
1 parent 853bd60 commit 105c33d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/uiSelectController.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ uis.controller('uiSelectCtrl',

//When an object is used as source, we better create an array and use it as 'source'
var createArrayFromObject = function(){
$scope.$uisSource = Object.keys(originalSource($scope)).map(function(v){
var origSrc = originalSource($scope);
$scope.$uisSource = Object.keys(origSrc).map(function(v){
var result = {};
result[ctrl.parserResult.keyName] = v;
result.value = $scope.peopleObj[v];
result.value = origSrc[v];
return result;
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/uisRepeatParserService.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ uis.service('uisRepeatParser', ['uiSelectMinErr','$parse', function(uiSelectMinE

// if (isObjectCollection){
//00000000000000000000000000000111111111000000000000000222222222222220033333333333333333333330000444444444444444444000000000000000556666660000077777777777755000000000000000000000088888880000000
match = expression.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(([\w]+)?\s*(|\s*[\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);
match = expression.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(([\w\.]+)?\s*(|\s*[\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);

// 1 Alias
// 2 Item
Expand Down

0 comments on commit 105c33d

Please sign in to comment.