Opened 9 years ago

Last modified 9 years ago

#14406 closed defect

[regression] dojo.eval no longer uses dojo.global — at Version 2

Reported by: Adam Peller Owned by: Rawld Gill
Priority: blocker Milestone: 1.7.2
Component: Core Version: 1.7.0
Keywords: Cc: Javier Pedemonte, ben hockey, James Burke
Blocked By: Blocking:

Description (last modified by Adam Peller)

Prior to Dojo 1.7, dojo.eval was defined as

                return d.global.eval ? d.global.eval(scriptFragment) : eval(scriptFragment);    // Object

Currently, dojo.eval does not go through the dojo.global property. evals occur in the base window, which is a regression if called from within a dojo.withGlobal block.

Change History (2)

comment:1 Changed 9 years ago by Adam Peller

monkey patching a call to doc.global.eval complains on webkit because the 'this' doesn't match the caller

http://perfectionkills.com/global-eval-what-are-the-options/

Last edited 9 years ago by Adam Peller (previous) (diff)

comment:2 Changed 9 years ago by Adam Peller

Description: modified (diff)
Note: See TracTickets for help on using tickets.