Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create shared data space for YUI instances #2

Open
wants to merge 1 commit into
base: smugmug
Choose a base branch
from

Conversation

lsmith
Copy link

@lsmith lsmith commented Dec 20, 2012

Y.shared = { an object that all instances share };

Move YUI.Env.globalEvents (aka, Y.Global) to Y.shared.globalEventTarget

Also cleaned up the YUI constructor and yui.js file formatting a bit. Scary, I know. The diff for yui.js is hard to determine the changes from. For the most part, I moved the YUI constructor definition inside the IIFE so it could access the new shared object without exposing it on the prototype or on the YUI object. This resulted in a bunch of indent changes. The constructor itself had some unnecessary conditionals like

if (!l) { Y._setup(); }
if (l) { <do a loop, then> Y._setup(); }

The various test suites I've run have passed. The net change of this PR should be that Y.Global is no longer available from outside a YUI sandbox and there is now a private sharing space between YUI instances.

Y.shared = { an object that all instances share };
Move YUI.Env.globalEvents to Y.shared.globalEventTarget. Aka, Y.Global.
rgrove pushed a commit that referenced this pull request Jan 24, 2013
Ignore IO XDR tests when no native cross-domain transport is present.
rgrove pushed a commit that referenced this pull request May 15, 2013
HISTORY.md changes for 3.10.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant