Skip to content

Commit

Permalink
process any stragglers in validation queue
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Dec 23, 2023
1 parent 3d3ed85 commit ef7086e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions haxe/ui/validation/ValidationManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,13 @@ class ValidationManager {

isValidating = false;

/*
#if haxeui_flixel
if (_queue.length > 0) { // lets process any stragglers - items maybe have been added while processing other parts
process();
isPending = true;
Toolkit.callLater(process);
} else {
isPending = false;
}
#end
*/

isPending = false;

#if profile_validation
_profileCount++;
Expand All @@ -180,7 +178,7 @@ class ValidationManager {

}

private function queueSortFunction(first:IValidating, second:IValidating):Int {
private inline function queueSortFunction(first:IValidating, second:IValidating):Int {
var difference:Int = second.depth - first.depth;
//Down to top
return if (difference > 0) 1; else if (difference < 0) -1; else 0;
Expand Down

0 comments on commit ef7086e

Please sign in to comment.