Remove semi-functional .selector calculation from .pushStack()
|Reported by:||dmethvin||Owned by:||dmethvin|
Per discussion with ben_alman, and related to #7389 which consensus says won't happen.
.selector property can't be reliable since there are simple ways to construct a set that can't be represented by a CSS selector. We've documented those shortcomings in the API docs for
.selector but it's still a frequent source of questions and errors.
It would simplify the code for
.pushStack() and its callers if it didn't try to maintain the
.selector property at all, which is still in keeping with our documented use of
.live() immediately after a
$() set creation.
In addition we should deprecate non-core use of
.selector and remove the documentation from the API site eventually.
All to be done over several versions, with sufficient advance warning in the docs before breaking anything.
Change History (9)
comment:1 Changed 6 years ago by
|Component:||unfiled → core|
|Priority:||undecided → low|
|Status:||new → open|
comment:7 Changed 5 years ago by
|Milestone:||1.next → 1.9|
|Owner:||set to dmethvin|
|Status:||open → assigned|