Created
February 20, 2020 12:01
-
-
Save ArtemRomanovsky/bed94b0a548956a0af1149c665529b47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function checkAndUpdate(view: ViewData, nodeIndex: number, ...): boolean { | |
| switch (view.def.nodes[nodeIndex].flags & NodeFlags.Types) { | |
| case NodeFlags.TypeElement: | |
| return checkAndUpdateElement(view, nodeDef, ...); | |
| case NodeFlags.TypeText: | |
| return checkAndUpdateText(view, nodeDef, ...); | |
| case NodeFlags.TypeDirective: | |
| return checkAndUpdateDirective(view, nodeDef, ...); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment