Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8865333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:28:44+00:00 2026-06-14T16:28:44+00:00

For context I use coffeescript. If I create a base model that extends Backbone.Model

  • 0

For context I use coffeescript. If I create a base model that extends Backbone.Model and I create another class (i.e. App.Models.Project extends App.Models.Base).. everything works as expected.. what would be the difference to an instance of Project if in this base class I wrote:

initialize: ->
  super
  console.log 'hi'

and just plain

initialize: ->
  console.log 'hi'

Without spending too much time, it seems in my console an instantiated object acts as expected in both cases.. I hear you should ‘always call super’ here but I don’t know what I’m getting..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:28:46+00:00Added an answer on June 14, 2026 at 4:28 pm

    Backbone.Model.initialize does nothing.

    From the annotated source code, you can see the empty function defined in Backbone.Model

    initialize: function(){}
    

    It’s upto your model to override. Usually, model variables are set here. Whenever you create a model object, initialize is called internally.

    The same principle holds good when creating Views and Collections too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project that is trying to use context-free grammars for parsing
Context I want to use JavaFx with clojure. I am aware of http://nailthatbug.net/2011/06/clojure-javafx-2-0-simple-app/ Question:
Could anyone please explain what context should i use the AlertDialog.Builder class? I am
Context I use the ServerManager class to perform some actions on sites. Actually, I
I would like to create a render context to use opengl. The wglMakeCurrent(hdc, hrc)
I'm attempting to use context.Database to execute a stored proc that inserts a record
Context: I use an ArrayCollection object as follows: 1) Number of elements is fixed.
the context i use Spooler Events API to capture events generated by the spooler
I want to use Context.Items to store some info of a User Control like:
I choose an item in my list to edit (I use Context Menu) ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.