Ticket #7434 (closed enhancement: invalid)
Add execute() to jQuery core
| Reported by: | jez9999@… | Owned by: | jez9999@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.5 |
| Component: | unfiled | Version: | 1.4.4rc |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
comment:2 Changed 3 years ago by snover
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 3 years ago by snover
- Owner changed from rwaldron to jez9999@…
- Status changed from assigned to pending
comment:4 Changed 2 years ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
Automatically closed due to 14 days of inactivity.
comment:5 Changed 2 years ago by jez9999@…
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 2 years ago by ajpiano
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Wow, I think I have something called exec() in my collection of code.