(name, value)
| 2259 | } |
| 2260 | |
| 2261 | function selection_classed(name, value) { |
| 2262 | var names = classArray(name + ""); |
| 2263 | |
| 2264 | if (arguments.length < 2) { |
| 2265 | var list = classList(this.node()), i = -1, n = names.length; |
| 2266 | while (++i < n) if (!list.contains(names[i])) return false; |
| 2267 | return true; |
| 2268 | } |
| 2269 | |
| 2270 | return this.each((typeof value === "function" |
| 2271 | ? classedFunction : value |
| 2272 | ? classedTrue |
| 2273 | : classedFalse)(names, value)); |
| 2274 | } |
| 2275 | |
| 2276 | function textRemove() { |
| 2277 | this.textContent = ""; |
nothing calls this directly
no test coverage detected