xieguoking / oryx-editor

Automatically exported from code.google.com/p/oryx-editor
0 stars 0 forks source link

Accessing to unique ORYX.Editor Instance [Hack given] #475

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the problem?
It is hard to access to ORYX.Editor instance. Indeed, in profiles, 
window.onOryxResourcesLoaded is overwritten even if it has already been set. 

What should be done alternatively?
Since it must be the unique instance, ORYX.Editor should have a method like 
ORYX.Editor.getInstance.

Hack to allow that : 
https://gist.github.com/1037428

Original issue reported on code.google.com by florent....@gmail.com on 21 Jun 2011 at 7:54