Coder Social home page Coder Social logo

Inheriting Frisby about frisby HOT 8 CLOSED

vlucas avatar vlucas commented on July 25, 2024
Inheriting Frisby

from frisby.

Comments (8)

tnatarajan avatar tnatarajan commented on July 25, 2024

any better answer for this?

from frisby.

vlucas avatar vlucas commented on July 25, 2024

Although this is not officially supported, it looks like you are setting Child.prototype to a new instance of a Frisby object. I think you need to set it to Frisby's prototype.

from frisby.

tnatarajan avatar tnatarajan commented on July 25, 2024

Can you please explain the step of setting Child.prototype to Frisby's prototype. Because, i hope Frisby class is not exported to access the prototypes directly.

from frisby.

vlucas avatar vlucas commented on July 25, 2024

No, the class itself is not exposed. Frisby wasn't really designed for this use-case, but if you'd like to have it supported and are willing to do some work on it, I'd love to see a pull request for it.

from frisby.

tnatarajan avatar tnatarajan commented on July 25, 2024

I don't have access to create a Pull Request. Can you provide it.

from frisby.

vlucas avatar vlucas commented on July 25, 2024

This is an open-source project on GitHub. Anyone can make a pull request at any time.
See this article for instructions: https://help.github.com/articles/using-pull-requests

from frisby.

tnatarajan avatar tnatarajan commented on July 25, 2024

@vlucas - i have raised PR, few days back, please review when have some time.

from frisby.

vlucas avatar vlucas commented on July 25, 2024

I am going to close this. If there are things missing from Frisby that you want, please suggest them, open a specific issue, or submit a specific pull request. The inheritance model doesn't really fit well with JavaScript's prototype chain object model.

from frisby.

Related Issues (20)

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.