Example #1
0
 /// <summary>
 /// Creates a new instance of the JsonFunction class.
 /// </summary>
 public JsonFunction()
     : base()
 {
     this.scriptText         = new List <string>();
     this.parameters         = new List <string>();
     this.prependScript      = new List <string>();
     this.appendScript       = new List <string>();
     this.FileNotFoundAction = FileNotFoundAction.UseEmptyString;
     this.functionBody       = string.Empty;
     this.executionMode      = JavascriptExecutionTypes.OnParse;
     this.appendToBody       = new List <string>();
     this.IncludeScriptTags  = true;
     //this.AddRequiredScript("naizari.javascript.jsoncontrols.jsonfunction.js");
     this.AddRequiredScript(typeof(JsonFunction));
 }
Example #2
0
 /// <summary>
 /// Creates a new instance of the JsonFunction class.
 /// </summary>
 public JsonFunction()
     : base()
 {
     this.scriptText = new List<string>();
     this.parameters = new List<string>();
     this.prependScript = new List<string>();
     this.appendScript = new List<string>();
     this.FileNotFoundAction = FileNotFoundAction.UseEmptyString;
     this.functionBody = string.Empty;
     this.executionMode = JavascriptExecutionTypes.OnParse;
     this.appendToBody = new List<string>();
     this.IncludeScriptTags = true;
     //this.AddRequiredScript("naizari.javascript.jsoncontrols.jsonfunction.js");
     this.AddRequiredScript(typeof(JsonFunction));
 }