Skip to content

Popups from Modules not handled by Module swiz instance #38

@azack

Description

@azack

I believe I've re-discovered the issue reported here http://swizframework.jira.com/browse/SWIZ-24

When a popup is created in a Module and added via PopupManager, the swiz instance that processes the popup is not the module instance, but the "root" swiz instance of the application.

When the popup in question is not a type included in the root application, the root swiz instance can't handle it and we get a runtime error:

ReferenceError: Error #1065: Variable foo is not defined.
at flash.system::ApplicationDomain/getDefinition()

A workaround is to include a dummy variable in the root application of the popup's type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions