1 /*
  2  * CopticCal.js - Represent a Coptic calendar object.
  3  *
  4  * Copyright © 2015,2018, JEDLSoft
  5  *
  6  * Licensed under the Apache License, Version 2.0 (the "License");
  7  * you may not use this file except in compliance with the License.
  8  * You may obtain a copy of the License at
  9  *
 10  *     http://www.apache.org/licenses/LICENSE-2.0
 11  *
 12  * Unless required by applicable law or agreed to in writing, software
 13  * distributed under the License is distributed on an "AS IS" BASIS,
 14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15  *
 16  * See the License for the specific language governing permissions and
 17  * limitations under the License.
 18  */
 19 
 20 var Utils = require("./Utils.js");
 21 var Calendar = require("./Calendar.js");
 22 var EthiopicCal = require("./EthiopicCal.js");
 23 
 24 /**
 25  * @class
 26  * Construct a new Coptic calendar object. This class encodes information about
 27  * a Coptic calendar.<p>
 28  *
 29  * @param {Object=} options Options governing the construction of this instance
 30  * @constructor
 31  * @extends EthiopicCal
 32  */
 33 var CopticCal = function(options) {
 34     this.type = "coptic";
 35 
 36     if (options && typeof(options.onLoad) === "function") {
 37         options.onLoad(this);
 38     }
 39 };
 40 
 41 CopticCal.prototype = new EthiopicCal();
 42 CopticCal.prototype.parent = EthiopicCal;
 43 CopticCal.prototype.constructor = CopticCal;
 44 
 45 
 46 /* register this calendar for the factory method */
 47 Calendar._constructors["coptic"] = CopticCal;
 48 
 49 module.exports = CopticCal;
 50