Skip to content
Snippets Groups Projects
Commit e613b40e authored by pregmodfan's avatar pregmodfan
Browse files

Even more tweaking for rules second level properties

parent eb977055
No related branches found
No related tags found
No related merge requests found
......@@ -928,6 +928,11 @@ window.mergeRules = function(rules) {
if (applies)
{
//Objects in JS in operaions "=" pass by reference, so we need completly new object to avoid mess up previous rules.
if ("object" == typeof rules[i][prop] && "object" != typeof combinedRule[prop])
combinedRule[prop] = new Object();
//If we already have object - now we will process it's properties, but object itself should be skiped.
if ("object" != typeof combinedRule[prop])
combinedRule[prop] = rules[i][prop];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment