6 Replies Latest reply on Feb 3, 2015 12:27 PM by NEW EXPORT ACCOUNT

    Turning code snippets into a new JS library for using EA

    NEW EXPORT ACCOUNT

      Hi,

       

      Considering turning a bunch of EA code snippets into a JS library.

       

      So here are the main questions about doing so...

       

      1. Is the root object class of EA the "sym" object and what is it actually in JS or JQuery? Is sym simply a variable containing the value: $( document )?

       

      2. How to extend a class, such as sym? Can I simply add a method to sym by writing this? sym.newMethod=function(){do things}

       

      3. Is composition.ready() actually the JQuery $( document ).ready() ?

       

      And finally, is it alright to simply put all the methods extending the "sym" class into a .js file?

       

      Thanks in advance!