version 1.9.1

This commit is contained in:
Rene
2019-08-03 11:44:56 +02:00
parent fbea0fee03
commit f6761ee2da
11 changed files with 80 additions and 29 deletions
+9 -5
View File
@@ -2,13 +2,13 @@
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.9.0
* Version: 1.9.1
*
* Copyright KingSora | Rene Haas.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 27.07.2019
* Date: 03.08.2019
*/
(function (global, factory) {
@@ -1582,10 +1582,14 @@
//if the template has a object as value, it means that the options are complex (verschachtelt)
if(templateIsComplex && dataValueType == TYPES.o) {
validatedOptions[prop] = validatedOptionsPrepared[prop] = { };
validatedOptions[prop] = { };
validatedOptionsPrepared[prop] = { };
checkObjectProps(dataValue, templateValue, dataDiffValue, validatedOptions[prop], validatedOptionsPrepared[prop], propPrefix + prop);
if(isEmptyObj(dataValue))
delete data[prop];
FRAMEWORK.each([ data, validatedOptions, validatedOptionsPrepared ], function(index, value) {
if(isEmptyObj(value[prop])) {
delete value[prop];
}
});
}
else if(!templateIsComplex) {
for(i = 0; i < templateTypes[LEXICON.l]; i++) {
+3 -3
View File
File diff suppressed because one or more lines are too long
+9 -5
View File
@@ -2,13 +2,13 @@
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.9.0
* Version: 1.9.1
*
* Copyright KingSora | Rene Haas.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 27.07.2019
* Date: 03.08.2019
*/
(function (global, factory) {
@@ -505,10 +505,14 @@
//if the template has a object as value, it means that the options are complex (verschachtelt)
if(templateIsComplex && dataValueType == TYPES.o) {
validatedOptions[prop] = validatedOptionsPrepared[prop] = { };
validatedOptions[prop] = { };
validatedOptionsPrepared[prop] = { };
checkObjectProps(dataValue, templateValue, dataDiffValue, validatedOptions[prop], validatedOptionsPrepared[prop], propPrefix + prop);
if(isEmptyObj(dataValue))
delete data[prop];
FRAMEWORK.each([ data, validatedOptions, validatedOptionsPrepared ], function(index, value) {
if(isEmptyObj(value[prop])) {
delete value[prop];
}
});
}
else if(!templateIsComplex) {
for(i = 0; i < templateTypes[LEXICON.l]; i++) {
+3 -3
View File
File diff suppressed because one or more lines are too long