fix drop
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6b2367f8 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6b2367f8 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6b2367f8 Branch: refs/heads/refactor-sprite Commit: 6b2367f824a9d35ac0ddec899e0e079b8dc236dd Parents: 3b4c869 Author: Alex Harui <aha...@apache.org> Authored: Thu Aug 11 16:56:53 2016 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Thu Aug 11 16:56:53 2016 -0700 ---------------------------------------------------------------------- .../flex/org/apache/flex/events/DragEvent.as | 27 ++++++++++++++++++-- .../beads/controllers/DropMouseController.as | 5 ++++ 2 files changed, 30 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6b2367f8/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as b/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as index 3e3c353..97a81b6 100644 --- a/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as +++ b/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/events/DragEvent.as @@ -354,7 +354,6 @@ package org.apache.flex.events /** */ - COMPILE::JS private static function installDragEventMixin():Boolean { var o:Object = org.apache.flex.events.ElementEvents.elementEvents; @@ -367,8 +366,32 @@ package org.apache.flex.events /** * Add some other events to listen from the element */ - COMPILE::JS private static var dragEventMixin:Boolean = installDragEventMixin(); + + /** + * Calling this calls the static initializers + */ + COMPILE::SWF + public static function init():void + { + + } + + /** + * Create a copy/clone of the Event object. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + COMPILE::SWF + override public function cloneEvent():IFlexJSEvent + { + return createDragEvent(type, this); + } + + } } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6b2367f8/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/controllers/DropMouseController.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/controllers/DropMouseController.as b/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/controllers/DropMouseController.as index 3165241..e03d049 100644 --- a/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/controllers/DropMouseController.as +++ b/frameworks/projects/DragDrop/src/main/flex/org/apache/flex/html/beads/controllers/DropMouseController.as @@ -110,6 +110,11 @@ package org.apache.flex.html.beads.controllers { _strand = value; + COMPILE::SWF + { + // consider using [Mixin] and requiring MixinManager + DragEvent.init(); + } IEventDispatcher(_strand).addEventListener(DragEvent.DRAG_MOVE, dragMoveHandler); }