Document.js 427 B

12345678910111213
  1. var Document = module.exports = (function(){
  2. // CONSTRUCTOR
  3. var klass = function Document(){
  4. if(this.constructor == Document) throw new Error("Never create instances! Use static helpers only.");
  5. }, base = Object, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  6. // STATIC MEMBERS
  7. klass.compare = function compare(l, r){
  8. throw new Error("NOT IMPLEMENTED");
  9. };
  10. return klass;
  11. })();