Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache FalconJX 0.8.0
-
None
Description
COMPILE::JS
public function get defaultPrevented():Boolean
COMPILE::JS
override public function isDefaultPrevented():Boolean
compiles to:
org.apache.flex.events.KeyboardEvent.prototype.get__defaultPrevented = function() {
return this.wrappedEvent ? this.wrappedEvent.defaultPrevented : org.apache.flex.events.KeyboardEvent.superClass_.get__defaultPrevented.apply(this);
};
org.apache.flex.events.KeyboardEvent.prototype.isDefaultPrevented = function() {
return this.defaultPrevented;
};
In case the problem was not obvious, the first function should have looked like this:
return this.wrappedEvent ? this.wrappedEvent.defaultPrevented : org.apache.flex.events.KeyboardEvent.superClass_.isDefaultPrevented.apply(this);
instead of using (the non-existent) get__defaultPrevented function.
Reversing the functions to use super in the normal function behaves as I’d expect:
COMPILE::JS
public function get defaultPrevented():Boolean
COMPILE::JS
override public function isDefaultPrevented():Boolean
Compiles to:
org.apache.flex.events.KeyboardEvent.prototype.get__defaultPrevented = function() {
return this.isDefaultPrevented();
};
org.apache.flex.events.KeyboardEvent.prototype.isDefaultPrevented = function() {
return this.wrappedEvent ? this.wrappedEvent.defaultPrevented : org.apache.flex.events.KeyboardEvent.superClass_.isDefaultPrevented.apply(this);
};