aeq.thisObj !== [object global]

Issue #11 closed
Rune Gangsø created an issue

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)

  1. Log in to comment