Exemplo n.º 1
0
        public JSDomAdapter(IEngine engine, CWDFileLoader fileLoader, JSGlobal jsGlobal)
        {
            Trace.Assert(engine != null);
              Trace.Assert(fileLoader != null);

              this.engine = engine;
              this.jsGlobal = jsGlobal;
              this.fileLoader = fileLoader;
        }
Exemplo n.º 2
0
        public ClosureFrameworkAdapter(IEngine engine, CWDFileLoader fileLoader, OneTimeFileLoader oneTimeFileLoader, JSGlobal jsGlobal, string baseJsFile)
            : base(engine, fileLoader, jsGlobal)
        {
            Trace.Assert(oneTimeFileLoader != null);
              Trace.Assert(!String.IsNullOrWhiteSpace(baseJsFile));
              Trace.Assert(File.Exists(baseJsFile));

              this.oneTimeFileLoader = oneTimeFileLoader;
              this.baseJsFile = baseJsFile;
              basedir = new FileInfo(baseJsFile).Directory.FullName;
        }