regression polls could not be closed properly

This commit is contained in:
Sam
2017-07-18 14:52:58 -04:00
parent 660d5e0a35
commit b7f58fe880
2 changed files with 6 additions and 3 deletions

View File

@ -113,7 +113,10 @@ const rule = {
// default poll attributes
const attributes = [["class", "poll"]];
attributes.push([DATA_PREFIX + "status", "open"]);
if (!attrs['status']) {
attributes.push([DATA_PREFIX + "status", "open"]);
}
WHITELISTED_ATTRIBUTES.forEach(name => {
if (attrs[name]) {