Giter Site home page Giter Site logo

extends-classes's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

easa w3ss znoobs

extends-classes's Issues

constructor() method called 1 more time every time an object is created

Hi,

Every time I create an object from a class that extends several classes, using extends-classes, the constructor() methods of the extended classes are called 1 time for each previously created object. So if I create 10 objects, the 10th object will have the same constructor() methods called 10 times (instead of 1 time).

A simple fix is to make sure the constructor is not already included before adding it the constructors array:

if (!constructors.includes(arg.prototype.constructor)) {
      constructors.push(arg.prototype.constructor);
}

Can i use it for core feature of HyronJS

Hi, Jarradseers

I am the founder of hyronjs, it is a framework to help build backend application faster and easier focus on reuse and architecture. this is document : https://hyron.gitbook.io/hyron/
I find your package quite interesting, and I think it would be nice if it was applied in the core of Hyron, and it would help users to inherit from Hyron, if their services were complicated.
But I see some problems in your package

  • It requires a ____ call (method, args), and I think it's not necessary, I need to keep it simple
  • It seems that it does not inherit static methods, right? I think it's a big omission, can you mix it?
  • I'm not sure if its performance is okay, and whether you have fully tested it?

Hope you can help me edit it. Besides, I am also looking for more partners to build better projects. I will be happy if you join ๐Ÿ˜ƒ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.