Commit 4a944892 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix regions.remove class logic

parent a3bbdb33
......@@ -4393,7 +4393,14 @@
.remove();
__regions = __regions.filter(function (region) {
return classes.indexOf(region.class) < 0;
var found = false;
if (!region.class) {
return true;
}
region.class.split(' ').forEach(function (c) {
if (classes.indexOf(c) >= 0) { found = true; }
});
return !found;
});
return __regions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment