Skip to content

Commit

Permalink
Fix parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldinoor committed May 27, 2016
1 parent 7728e8e commit 4ab1474
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LanguageSelecter",
"version": "1.0.2",
"version": "1.0.3",
"authors": [
"Meldinoor <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion app.js

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

2 changes: 1 addition & 1 deletion app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ module LanguageModule {
}

ngModel.$formatters.push(m => Languages[m] + ' (' + m + ')');
ngModel.$parsers.push(v => v.substr(v.lastIndexOf('(') + 1, 3));
ngModel.$parsers.push(v => v.substr(v.lastIndexOf('(') + 1, 2));

if (!ngModel.$modelValue && defaultLanguage) {
ngModel.$setViewValue(Languages[defaultLanguage] + ' (' + defaultLanguage + ')');
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LanguageSelecter",
"version": "1.0.2",
"version": "1.0.3",
"authors": [
"Meldinoor <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion js/app.js

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

2 changes: 1 addition & 1 deletion js/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ module LanguageModule {
}

ngModel.$formatters.push(m => Languages[m] + ' (' + m + ')');
ngModel.$parsers.push(v => v.substr(v.lastIndexOf('(') + 1, 3));
ngModel.$parsers.push(v => v.substr(v.lastIndexOf('(') + 1, 2));

if (!ngModel.$modelValue && defaultLanguage) {
ngModel.$setViewValue(Languages[defaultLanguage] + ' (' + defaultLanguage + ')');
Expand Down

0 comments on commit 4ab1474

Please sign in to comment.