Data overload#515
Conversation
|
hold on this. New added |
|
So commands will have to be moved out of the objects main scope as well, for this to be viable? |
|
UPDATE: I'm not seeing any conflict with custom commands. Can you provide an example of this case? |
|
I've tested this with the following scenario: cmd: mycmd works as expected. Am I missing something? |
|
oh, sorry, it's about options.
I don't want to introduce more these cases until we fix this issue. |
|
I think my pull request fixes that issue. Options no longer get stored to the object directly. Before you would have had: Now you get: The following is tested and working: |
|
I am still investigating options. For now, I'll note that https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map |
|
I am closing this in favour of #951, which builds on work in this Pull Request and aims for backwards compatibility. Thank you for your contributions. |
|
I have opened a new Pull Request which allows storing option values separately rather than as command properties (access using .opts()), and passes the options (rather than the command) to the action handler. See #1102 |
New features allow the following: