calling pure javascript functions

I have some javascript functions. I wouls like to call these javascript functions from enyo . Similarly i would like to call enyo functions from javscript. Is it possilbe?

Comments

  • Calling non-enyo JS from your enyo kinds is easy - just call the function! Calling into enyo from outside can be a little trickier. If you just want to call methods on the top-level kind (the one you renderInto the DOM), that's pretty straightforward.

    http://jsfiddle.net/ryanjduffy/9JHXj/

    If you want to invoke some function that's internal, that's more difficult and it also breaks the encapsulation enyo is trying to provide. I'd suggest using enyo.Signals in that case rather than direct invocation.
Sign In or Register to comment.