Skip to content
This repository was archived by the owner on Oct 29, 2019. It is now read-only.
This repository was archived by the owner on Oct 29, 2019. It is now read-only.

Error with FieldDropdown #15

@NeuralCoder3

Description

@NeuralCoder3

In the file value_block.js the variable args[j][1] is cloned when it is a Blockly.FieldDropdown.
In my tests args[j][1].clone(); always retuned the error Uncaught TypeError: args[j][1].clone is not a function
Any attempts to clone it manually or via Json didn't worked.

In the android version there is a clone function which is missing in the javascript version. To bypass this a new object can be generated with the constructor var dd=new Blockly.FieldDropdown(args[j][1].menuGenerator_,args[j][1].changeHandler_);.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions