- changed status to closed
aeq.thisObj !== [object global]
Issue #11
closed
Because the aequery definition is inside a self-invoking function this
refers to the function and not the global object. This is a problem because when using aeq.ui.createMainWindow()
which relies on aeq.thisObj
for knowing if it should create a standalone window or not.
One solution would be to pass this
into the aequery defining function, but that would not work if a user puts #include "aeq.js"
inside a self-invoking function, which is at least what I usually do.
How should this be solved?
Comments (2)
-
reporter -
reporter - changed milestone to 1.0 Release
- Log in to comment
UI: Pass thisObj to createMainWindow to create dockable panel
thisObj is passed as the first argument.
Closes
#11→ <<cset dce3f57d5b09>>