/**
 * @license
 * Copyright 2018 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.apploader',
  name: 'NodeModelFileDAO',
  extends: 'foam.dao.ProxyDAO',
  requires: [
    'foam.apploader.JSON2ModelFileDAO',
    'foam.apploader.ModelFileDAO',
    'foam.apploader.NodeModelFileFetcher',
  ],
  properties: [
    'root',
    'json2',
    {
      name: 'delegate',
      factory: function() {
        var cls = this.json2 ? this.JSON2ModelFileDAO : this.ModelFileDAO;
        return cls.create({
          fetcher: this.NodeModelFileFetcher.create({root: this.root}), });
      },
    },
  ],
});

/**
 * @license
 * Copyright 2018 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.apploader',
  name: 'NodeModelFileDAO',
  extends: 'foam.dao.ProxyDAO',
  requires: [
    'foam.apploader.ModelFileDAO',
    'foam.apploader.NodeModelFileFetcher',
  ],
  properties: [
    'root',
    {
      name: 'delegate',
      factory: function() {
        return this.ModelFileDAO.create({
          fetcher: this.NodeModelFileFetcher.create({root: this.root}), });
      },
    },
  ],
});

Remove some more json2 code.
Remove some more json2 code.
