author | Aryeh Gregor <AryehGregor+gitcommit@gmail.com> |
Tue, 31 May 2011 11:49:08 -0600 | |
changeset 209 | 05af1d9647d7 |
parent 208 | 95f110a6e06b |
child 210 | f66df0922c5c |
autoimplementation.html |
--- a/autoimplementation.html Mon May 30 15:34:42 2011 -0600 +++ b/autoimplementation.html Tue May 31 11:49:08 2011 -0600 @@ -2170,7 +2170,9 @@ } alertDiv.parentNode.removeChild(alertDiv); if (!td.querySelector(".alert")) { - td.parentNode.classList.remove("alert"); + td.parentNode.className = (" " + td.parentNode.className + " ") + .replace(/ alert /g, "") + .replace(/^ | $/g, ""); } } })(key, newValue, alertDiv); }