Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#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:
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 Rick Waldron

Owner: set to Rick Waldron
Status: newassigned

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

comment:2 Changed 13 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 13 years ago by snover

Owner: changed from Rick Waldron to jez9999@…
Status: assignedpending

comment:4 Changed 12 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Automatically closed due to 14 days of inactivity.

comment:5 Changed 12 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 12 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.

Note: See TracTickets for help on using tickets.