.pragma library

  • I had been under the impression that .pragma library meant "loads only once". That's correct for QML files importing JS files,
    but not for JS files importing other JS files.

    The JS file loaded by the QML file, doesn't share the context with the same file loaded from a JS script.
    I hope this is a bug?

    Nevermind... I just learned that the docs are leaving out important information.
    I found the culprit that's the cause of my problem(s):

    This copies all functions from the other file into the current file's namespace, but ignores all pragmas and imports defined in that file.

Log in to reply