Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 379840

Summary: flushGlobalQueues() causes errors in custom widget
Product: [RT] RAP Reporter: Austin Riddle <austin.riddle>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Austin Riddle CLA 2012-05-17 14:52:49 EDT
Version: Git HEAD

For a custom widget that calls qx.ui.core.Widget.flushGlobalQueues(); I receive this error on the client:

Error stack:
TypeError: Property 'styleAnimation' of object [object org.eclipse.rap.rwt.visualization.jit.SpaceTree] is not a function
    at [object Object]._styleFromMap
    at [object Object]._renderAppearance
    at [object Function].flushGlobalStateQueue
    at [object Function].flushGlobalQueues
rap-client-b496858f.js:47460Uncaught TypeError: Property 'styleAnimation' of object [object org.eclipse.rap.rwt.visualization.jit.SpaceTree] is not a function
Comment 1 Ivan Furnadjiev CLA 2012-05-17 15:21:26 EDT
Austin, the workaround is to change your SpaceTree.js to extend "org.eclipse.swt.widgets.Composite" instead of "qx.ui.layout.CanvasLayout".

*** This bug has been marked as a duplicate of bug 379325 ***