-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX release] fix the leaks #11832
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ import 'ember-runtime/system/native_array'; // make sure Ember.A is setup. | |
|
||
var loadHooks = Ember.ENV.EMBER_LOAD_HOOKS || {}; | ||
var loaded = {}; | ||
export var _loaded = loaded; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this really private? It's exported. I know JS doesn't really have 'protected' but am wondering if you can add a doc block on the export for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. undocumented is private and our modules are not exposed by any public means, once they are a different facade will be exposed that enables 100% public only public API. |
||
|
||
/** | ||
Detects when a specific package of Ember (e.g. 'Ember.Application') | ||
|
@@ -31,12 +32,12 @@ var loaded = {}; | |
@private | ||
*/ | ||
export function onLoad(name, callback) { | ||
var object; | ||
var object = loaded[name]; | ||
|
||
loadHooks[name] = loadHooks[name] || Ember.A(); | ||
loadHooks[name].pushObject(callback); | ||
|
||
if (object = loaded[name]) { | ||
if (object) { | ||
callback(object); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at first glance this does seem strange
import { _blah }
I looked at the definition and don't know whether this is private just am assuming that the underscore prefix means private.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all modules are currently private, as they are not exposed.