Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
add support for loading controller scripts as JS modules #2868
add support for loading controller scripts as JS modules #2868
Changes from all commits
4cf5dd0
40246b5
6636d0e
1bfdaf4
537f2a1
60590e8
a988523
949b11b
019bf82
a1ac571
2a9aa02
dddaab6
d9464c0
071b306
e1e8145
dddccd5
6ddc7bb
ef745f1
e4a3c58
6f59d5a
8182c77
20f1485
328611e
868fd04
80f18ec
abe2624
3ef56de
ecc740d
f963cc3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should deprecate the use of ".incomingData". This will be a nice performance benefit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what I did, but below you are saying the opposite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the place where the dispatcher should directly call the js callbacks.
For standard button connections we even bypass the js round trip by altering COs directly.
This will also help to clutter the js mapping. This need to provide callbacks for the difficult things only.
The mapping can still optional provide an "incomingData" function to perform difficult tasks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the dispatcher is JS. There are no plans to change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can is unrelated, right? I think enabling support for controller scripts in subdirectories is a different matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was very simple to implement and I don't think there's any reason to remove it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not stick with the term "incomingData"?
Else I would like to emphasis that it is a catch all callback. "allIncommingData" or similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is a completely new system.