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

Asking about sandbox and core design #3

Open
cod3beat opened this issue Nov 3, 2013 · 0 comments
Open

Asking about sandbox and core design #3

cod3beat opened this issue Nov 3, 2013 · 0 comments

Comments

@cod3beat
Copy link

cod3beat commented Nov 3, 2013

Im not sure if this is the appropriate place to ask. After reading some presentation from Addy Osmany about Module, Facade, Mediator, and then after reading how AuraJS seperates the components into extension, sandbox, and core, I was very interested how you guys can seperate the application code from the core code.

In aurajs documentation, it says that a sandbox:

A sandbox is just a way to implement the facade pattern on top of features provided by core. It lets you expose the parts of a JavaScript library that are safe to use instead of exposing the entire API

But when i read the aura-github example (for example this one: https://github.com/aurajs/examples/blob/master/aura-github/public/widgets/alerts/main.js), I saw that the widget can access jquery API, such as:

this.$el.show();

Is that correct? Isn't that exposing the underlying core library API?

Hopefully you guys understand what I mean, and in by no way I'm saying that I know what the good way, or bad way is.

So please help me to see this architectural idea correctly.

thanks in advance

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

No branches or pull requests

1 participant