efront 4.2.5 → 4.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  var languageMap = {};
3
3
  var languageIndex = 0;
4
- function i18n() {
5
- return arguments[isFinite(this) ? this : languageIndex];
4
+ function i18n(arg) {
5
+ if (typeof arg === 'string') arg = arguments;
6
+ return arg[isFinite(this) ? this : languageIndex];
6
7
  };
7
8
  i18n.lang = function (type) {
8
9
  var id = getLanguageIndexFromName(type) || 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.2.5",
3
+ "version": "4.2.6",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {