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

Executing methods with parameters #1

@nix4

Description

@nix4

JQuery widgets allows you to execute methods on the instance and pass parameters to those methods for example:
$( "#elem" ).progressbar( "value", 40 ); will execute the 'value' and pass the 40 to the function.

How can I achieve the same with backbone.widget?

I noticed on:

return instance[options].call(klass);

that the method being executed on the widget is invoked but where are the parameters passed?

Is this not supported in backbone.widget?

Thanks

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