public static < T > T jsni ( String meth , Object ... args ) { return runJavascriptFunction ( null , meth , args ) ; }
Run any arbitrary function in javascript scope using the window as the base object . It checks the existence of the function and object hierarchy before executing it . It s very useful in order to avoid writing jsni blocks for very simple snippets .