Skip to content

core.qb breaks DOM events #1

@Raveler

Description

@Raveler

When you use run() on a result that contains core.qb, it will break DOM events when they happen later. More specifically, after calling:

var parser = new quby.main.Parser();
parser.parse(this.core, true);
parser.finish(function(result) {
result.run();
}

... the following code will fail to work:

var button = document.getElementById('button');
submit.onclick = function() { console.log("this does not happen"); }

However, the event IS triggered in the DOM, it just never reaches the button.

Removing the following lines from core.qb resolves the issue:

def toString()

    return this

end

def toString()

    return #<# this._fun_tostring_0() #>#

end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions