/* * public JSObjectWrapper(IJSContext context) * { * if (context == null) throw new ArgumentNullException("context"); * * this.context = context; * jsObject = (IExpando) context.CreateJSObject(); * } */ public JSObjectWrapper(IJSContext context, object jsObject = null) { if (context == null) { throw new ArgumentNullException("context"); } this.context = context; this.jsObject = (IExpando)(jsObject ?? context.CreateJSObject()); }