Opened 15 years ago
Closed 14 years ago
#961 closed enhancement (wontfix)
prependclass: test first whether the class isn't yet active
Reported by: | Owned by: | Bryan Forbes | |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | HTML | Version: | 0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
currently dojo.html.prependClass(node, classStr)
prepends classStr
to the current Class-attribute of node
.
It might be better to have some test first check whether node
hasn't already the classStr
and remove it in that case, before prepending classStr
it would be in that case like: give an existing class the highest precidence, without having it multiple times in the list of class names
Change History (3)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Component: | General → HTML |
---|---|
Milestone: | → 0.5 |
Owner: | changed from anonymous to Bryan Forbes |
comment:3 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
method does not exist in 0.9
Note: See
TracTickets for help on using
tickets.
adding this extra test, this would be the new function (in src/html.js)