Browse Source

Fix regions.remove class logic

pull/246/head
Masayuki Tanaka 11 years ago
parent
commit
4a94489226
  1. 9
      c3.js
  2. 2
      c3.min.js

9
c3.js

@ -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;

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save