Skip to content

Commit 264cb27

Browse files
committed
chore(dist): latest minified versions
1 parent 86a2a64 commit 264cb27

4 files changed

+18
-13
lines changed

dist/angular-localization.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* angular-localization :: v1.0.0 :: 2014-06-04
2+
* angular-localization :: v1.0.1 :: 2014-07-03
33
* web: https://github.com/doshprompt/angular-localization
44
*
55
* Copyright (c) 2014 | Rahul Doshi
@@ -293,15 +293,20 @@ angular.module('ngLocalize', ['ngCookies', 'ngLocalize.Config', 'ngLocalize.Even
293293
function (locale, localeEvents, localeConf) {
294294
'use strict';
295295

296-
function update(elm, string, optArgs) {
297-
var tag = '';
296+
function setText(elm, tag) {
297+
if (tag !== elm.text()) {
298+
elm.text(tag);
299+
}
300+
}
298301

299-
locale.ready(locale.getPath(string)).then(function () {
300-
tag = locale.getString(string, optArgs);
301-
if (tag !== elm.text()) {
302-
elm.text(tag);
303-
}
304-
});
302+
function update(elm, string, optArgs) {
303+
if (locale.isToken(string)) {
304+
locale.ready(locale.getPath(string)).then(function () {
305+
setText(elm, locale.getString(string, optArgs));
306+
});
307+
} else {
308+
setText(elm, string);
309+
}
305310
}
306311

307312
return function (scope, elm, attrs) {
@@ -389,4 +394,4 @@ angular.module('ngLocalize.InstalledLanguages', [])
389394
'en': 'en-US'
390395
});
391396
angular.module('ngLocalize.Version', [])
392-
.constant('localeVer', 'v1.0.0');
397+
.constant('localeVer', 'v1.0.1');

dist/angular-localization.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-localization.min.js.gzip

13 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)