public override string CreateJavaScript(StringCollection method) { MathNode.Trace("{0}.CreateJavaScript for {1}", this.GetType().Name, _value); if (_value == null) { throw new MathException("object reference is not set"); } IRaisCodeCompiler cc = (IRaisCodeCompiler)MathNode.GetService(typeof(IRaisCodeCompiler)); if (cc == null) { throw new MathException("IRaisCodeCompiler is not available"); } return(_value.CreateJavaScript(method, cc.CurrentXPath)); }