Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add Support for Binding Props Using Single Method #16

Closed
1 task
usernane opened this issue Feb 4, 2022 · 0 comments · Fixed by #18
Closed
1 task

[Feature Request] Add Support for Binding Props Using Single Method #16

usernane opened this issue Feb 4, 2022 · 0 comments · Fixed by #18
Labels
enhancement New feature or request

Comments

@usernane
Copy link
Owner

usernane commented Feb 4, 2022

Suppose that a developer want to bind a property that will be used by all callbacks which exist in AJAXRequest instance. Currently, the only why to bind them is by looping throgh all existing callbacks using thier IDs in addition to all pools. The code that the developer will have to write is lengthy.

A suggested solution for this problem is to have a method with following signature:
AJAXRequest.bind(name, varToBind [,callbackId [, poolName]])

The method should accept two parameters at least, the first parameter is the name that will be used to access the property and the second one is the value that will be linked. An optional parameter could be a callback ID. So that the binding will only be for the callback with the given ID. A fourth optional parameter could be pool name. So that the variable will be only linked with callbacks in the specified pool.

Associated Tasks:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant