issue #3069: Moving s_eventPriorityIndex to member variable of EventDispatcher.