"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "i18next.js" between
i18next-19.8.3.tar.gz and i18next-19.8.4.tar.gz

About: i18next is an internationalization framework for browser or any other javascript environment.

i18next.js  (i18next-19.8.3):i18next.js  (i18next-19.8.4)
skipping to change at line 363 skipping to change at line 363
var value = getPath(data, key); var value = getPath(data, key);
if (value !== undefined) { if (value !== undefined) {
return value; return value;
} }
return getPath(defaultData, key); return getPath(defaultData, key);
} }
function deepExtend(target, source, overwrite) { function deepExtend(target, source, overwrite) {
for (var prop in source) { for (var prop in source) {
if (prop !== '__proto__') { if (prop !== '__proto__' && prop !== 'constructor') {
if (prop in target) { if (prop in target) {
if (typeof target[prop] === 'string' || target[prop] instanceof String || typeof source[prop] === 'string' || source[prop] instanceof String) { if (typeof target[prop] === 'string' || target[prop] instanceof String || typeof source[prop] === 'string' || source[prop] instanceof String) {
if (overwrite) target[prop] = source[prop]; if (overwrite) target[prop] = source[prop];
} else { } else {
deepExtend(target[prop], source[prop], overwrite); deepExtend(target[prop], source[prop], overwrite);
} }
} else { } else {
target[prop] = source[prop]; target[prop] = source[prop];
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)