#10749 closed bug (duplicate)
.text(null) breaks chaining
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Calling text on an element with null as the argument breaks chaining. See: http://jsfiddle.net/GGSNE/1/
Change History (4)
comment:1 Changed 11 years ago by
Owner: | set to anonymous |
---|---|
Status: | new → pending |
comment:2 Changed 11 years ago by
Status: | pending → new |
---|
I only came across this as I was adding numerical data to a table. In the data null is used to indicate no value. I'm not sure what should happen in terms of actually setting the text. I guess either nothing at all, or the same as passing undefined or an empty string. My problem was that it unexpected broke chaining.
comment:3 Changed 11 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I'm not a Javascript engine, admittedly, but
null
doesn't look like a string to me so it seems like it's inappropriate to pass there. What would be your desired outcome?