Skip to content

Commit

Permalink
Add 0.1.2 release files
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Brand committed Feb 20, 2015
1 parent 1375f1f commit 4ce56be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions dist/ion-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
'use strict';

angular.module('ion-autocomplete', []).directive('ionAutocomplete', [
'$ionicTemplateLoader', '$ionicBackdrop', '$rootScope', '$document', '$q',
function ($ionicTemplateLoader, $ionicBackdrop, $rootScope, $document, $q) {
'$ionicTemplateLoader', '$ionicBackdrop', '$rootScope', '$document', '$q', '$parse',
function ($ionicTemplateLoader, $ionicBackdrop, $rootScope, $document, $q, $parse) {
return {
require: '?ngModel',
restrict: 'E',
Expand Down Expand Up @@ -42,7 +42,7 @@ angular.module('ion-autocomplete', []).directive('ionAutocomplete', [
scope.getItemValue = function (item, key) {
var itemValue;
if (key && angular.isObject(item)) {
itemValue = item[key];
itemValue = $parse(key)(item);
} else {
itemValue = item;
}
Expand Down Expand Up @@ -160,12 +160,12 @@ angular.module('ion-autocomplete', []).directive('ionAutocomplete', [
};

// set the view value of the model
ngModel.$formatters.unshift(function (modelValue) {
ngModel.$formatters.push(function (modelValue) {
return scope.getItemValue(modelValue, scope.itemViewValueKey);
});

// set the model value of the model
ngModel.$parsers.unshift(function (viewValue) {
ngModel.$parsers.push(function (viewValue) {
return scope.getItemValue(viewValue, scope.itemValueKey)
});

Expand Down
4 changes: 2 additions & 2 deletions dist/ion-autocomplete.min.js

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

0 comments on commit 4ce56be

Please sign in to comment.