Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
chore(release): hotfix the v2.0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Apr 27, 2014
1 parent f5cd4f3 commit 3d7ff4b
Show file tree
Hide file tree
Showing 11 changed files with 676 additions and 672 deletions.
1,316 changes: 658 additions & 658 deletions dist/angular-strap.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/angular-strap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-strap.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/modules/parse-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ angular.module('mgcrea.ngStrap.helpers.parseOptions', []).provider('$parseOption
};
$parseOptions.valuesFn = function (scope, controller) {
return $q.when(valuesFn(scope, controller)).then(function (values) {
$parseOptions.$values = values ? parseValues(values) : {};
$parseOptions.$values = values ? parseValues(values, scope) : {};
return $parseOptions.$values;
});
};
// Private functions
function parseValues(values) {
function parseValues(values, scope) {
return values.map(function (match, index) {
var locals = {}, label, value;
locals[valueName] = match;
label = displayFn(locals);
value = valueFn(locals) || index;
label = displayFn(scope, locals);
value = valueFn(scope, locals) || index;
return {
label: label,
value: value
Expand Down
2 changes: 1 addition & 1 deletion dist/modules/parse-options.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modules/parse-options.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/modules/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ angular.module('mgcrea.ngStrap.select', [
evt.preventDefault();
evt.stopPropagation();
// Select with enter
if (evt.keyCode === 13 || evt.keyCode === 9) {
if (!options.multiple && (evt.keyCode === 13 || evt.keyCode === 9)) {
return $select.select(scope.$activeIndex);
}
// Navigate with keyboard
Expand Down Expand Up @@ -185,7 +185,7 @@ angular.module('mgcrea.ngStrap.select', [
if (options.keyboard) {
element.off('keydown', $select.$onKeyDown);
}
_hide();
_hide(true);
};
return $select;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/modules/select.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3d7ff4b

Please sign in to comment.