Skip to main content

Bug Tracker

Side navigation

#7434 closed enhancement (invalid)

Opened November 08, 2010 02:26PM UTC

Closed December 02, 2010 08:08AM UTC

Last modified December 02, 2010 02:15PM UTC

Add execute() to jQuery core

Reported by: jez9999@gmail.com Owned by: jez9999@gmail.com
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.

Attachments (0)
Change History (6)

Changed November 08, 2010 02:56PM UTC by rwaldron comment:1

owner: → rwaldron
status: newassigned

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

Changed November 08, 2010 05:16PM UTC by snover comment:2

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?

Changed November 08, 2010 05:16PM UTC by snover comment:3

owner: rwaldronjez9999@gmail.com
status: assignedpending

Changed December 02, 2010 08:08AM UTC by trac-o-bot comment:4

resolution: → invalid
status: pendingclosed

Automatically closed due to 14 days of inactivity.

Changed December 02, 2010 09:31AM UTC by jez9999@gmail.com comment:5

14 days of inactivity causes a bug to be automatically closed? What the fuuuuu? Could someone with permission please re-open this?

Changed December 02, 2010 02:15PM UTC by ajpiano comment:6

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.