#7434 closed enhancement (invalid)
Add execute() to jQuery core
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.5 |
Component: | unfiled | Version: | 1.4.4rc |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I think there should be a jQuery function similar to .globalEval(), but instead of evaluating code in quotes, it executes a function passed to it. Instead .globalEval() could just be extended to execute a function instead of evaluate a string, if a function is passed to it, in the global context.
Change History (6)
comment:1 Changed 13 years ago by
Owner: | set to Rick Waldron |
---|---|
Status: | new → assigned |
comment:2 Changed 13 years ago by
If you already have a function reference, you can call it on the global object by passing null
to call
or apply
. How does adding a new jQuery function help this?
comment:3 Changed 13 years ago by
Owner: | changed from Rick Waldron to jez9999@… |
---|---|
Status: | assigned → pending |
comment:4 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Automatically closed due to 14 days of inactivity.
comment:5 Changed 12 years ago by
14 days of inactivity causes a bug to be automatically closed? What the fuuuuu? Could someone with permission please re-open this?
comment:6 Changed 12 years ago by
If a bug is returned to the reporter for more information, like this one was, and *then* there is a fortnight of inactivity, then yes, the ticket is automatically closed. If you can provide an answer to the question that was posed:
"If you already have a function reference, you can call it on the global object by passing null to call or apply. How does adding a new jQuery function help this?"
then we can perhaps investigate this enhancement further. I tend to agree with snover though, I am not sure what the purpose of this would really be.
Wow, I think I have something called exec() in my collection of code.