Skip to content
This repository has been archived by the owner on Oct 14, 2019. It is now read-only.

Commit

Permalink
chore(Release): bump v
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jan 30, 2018
1 parent 7621c82 commit 1e4d5f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dist/css/bc-phone-number.css",
"dist/js/bc-phone-number.js"
],
"version": "5.1.1",
"version": "5.1.2",
"authors": [
"Abdullah Alansari <[email protected]>",
"Justin Tormey <[email protected]>",
Expand Down
6 changes: 3 additions & 3 deletions dist/js/bc-phone-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ angular.module('bcPhoneNumber', ['bcPhoneNumberTemplates', 'ui.bootstrap'])
.directive('bcPhoneNumber', function() {

if (typeof (bcCountries) === 'undefined') {
throw new('bc-countries not found, did you forget to load the Javascript?');
throw new Error('bc-countries not found, did you forget to load the Javascript?');
}

function getPreferredCountries(preferredCodes) {
Expand All @@ -40,7 +40,7 @@ angular.module('bcPhoneNumber', ['bcPhoneNumberTemplates', 'ui.bootstrap'])
preferredCountriesCodes: '@preferredCountries',
defaultCountryCode: '@defaultCountry',
selectedCountry: '=?',
isValid: '=',
isValid: '=?',
ngModel: '=',
ngChange: '&',
ngDisabled: '=',
Expand Down Expand Up @@ -89,8 +89,8 @@ angular.module('bcPhoneNumber', ['bcPhoneNumberTemplates', 'ui.bootstrap'])
});

scope.$watch('number', function(newValue) {
ctrl.$setValidity('phoneNumber', bcCountries.isValidNumber(newValue));
scope.isValid = bcCountries.isValidNumber(newValue);
ctrl.$setValidity('phoneNumber', scope.isValid);
});

scope.$watch('number', function(newValue) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/bc-phone-number.min.js

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

0 comments on commit 1e4d5f4

Please sign in to comment.