Ejemplo n.º 1
0
        internal static void RequestExternalFunctions()
        {
            JavascriptFunctionsNeededEventArgs args = new JavascriptFunctionsNeededEventArgs(Instance);

            if (JavascriptFunctionsNeeded != null)
            {
                JavascriptFunctionsNeeded(Instance, args);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Tells JIST to submit this class's functions
 /// to the javascript engine.
 /// </summary>
 private void JistPlugin_JavascriptFunctionsNeeded(object sender, JavascriptFunctionsNeededEventArgs e)
 {
     e.Engine.CreateScriptFunctions(this.GetType(), this);
 }
Ejemplo n.º 3
0
        void OnJavascriptFunctionsNeeded(object sender, JavascriptFunctionsNeededEventArgs e)
        {
            JistFunctions functions = new JistFunctions();

            e.Engine.CreateScriptFunctions(functions.GetType(), functions);
        }