Skip to content

Commit 2250dab

Browse files
committed
v3.0.1
-fixes the bug that makes webpack doesn't work -adds declaration file index.d.ts
1 parent 1889395 commit 2250dab

File tree

6 files changed

+687
-674
lines changed

6 files changed

+687
-674
lines changed

JsSimpleDateFormat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Visit https://github.com/atmulyana/JsSimpleDateFormat
1414
Function.prototype.__extends__ = function(fParent,oExtMembers) {
1515
this.prototype = new fParent();
1616
for (var i = 1; i<arguments.length; i++) {
17-
for (m in arguments[i]) {
17+
for (var m in arguments[i]) {
1818
if (this.prototype[m] !== arguments[i][m]) //needs to check because assignment always creates new property on instance even if the ancestors instance already has the same property with the same value
1919
this.prototype[m] = arguments[i][m];
2020
}
@@ -36,7 +36,7 @@ function JsDateFormatSymbols(sLocale) {
3636
if (!JsDateFormatSymbols.__symbols__[sLocale]) sLocale = 'en';
3737
var oSymbols = JsDateFormatSymbols.__symbols__[sLocale],
3838
oDefSymbols = JsDateFormatSymbols.__symbols__.en;
39-
for (p in oDefSymbols) {
39+
for (var p in oDefSymbols) {
4040
var ar = [].concat(oSymbols[p] || oDefSymbols[p]);
4141
this._setMap(ar);
4242
this['_'+p] = ar;

0 commit comments

Comments
 (0)