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 8743289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:38:57+00:00 2026-06-13T11:38:57+00:00

In http://addyosmani.github.com/backbone-fundamentals/ , it is said that every single one of the following objects

  • 0

In http://addyosmani.github.com/backbone-fundamentals/, it is said that

every single one of the following objects inherits from Backbone.Events:

Backbone.Model
Backbone.Collection
Backbone.Router
Backbone.History
Backbone.View

and I can also find in backbone.js the following:

// Attach all inheritable methods to the Model prototype.
_.extend(Model.prototype, Events, {  ....

However, I tried to check for the inheritance, by

Backbone.Model.prototype.__proto__ === Backbone.Events

in Firebug, and it shows false, and

Backbone.Model.prototype.__proto__.__proto__

is already null, meaning the end of the prototype chain. So how can the inheritance be shown?

  • 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-13T11:38:58+00:00Added an answer on June 13, 2026 at 11:38 am

    The page you’re referencing is incorrect, nothing in Backbone inherits from Backbone.Events. However, Backbone.Events is mixed into the other Backbone “classes”. The bit of code you mention:

    _.extend(Model.prototype, Events, { ...
    

    is not setting up inheritance, it is simply mixing Events into Model‘s prototype and the effect is similar to this:

    for k in Events
        Model.prototype[k] = Events[k]
    

    so it is simply add Events‘s methods to Model. The Backbone document only says this:

    Backbone.Events

    Events is a module that can be mixed in to any object, giving the object the ability to bind and trigger custom named events.

    Note the mixed in terminology.

    Backbone.Events isn’t even a constructor function (it is simply an object) so there’s nothing to inherit from.

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

Sidebar

Related Questions

I'm toying around with the aura( http://github.com/addyosmani/backbone-aura ) example implementing Facade and Mediator patterns
I'm trying to understanding backbone code. I read this http://addyosmani.com/blog/building-spas-jquerys-best-friends/ then I plan to
I was reading this link http://addyosmani.com/largescalejavascript/#modpattern And saw the following example. var basketModule =
http://jqueryui.com/demos/accordion/ You can do $('#itename').accordion('activate', 0) to make an accordion closed but that'll change
http://judopassion.com/wordpress/ I would move the leftSidebar, that now is under sidebar on the right,
http://msdn.microsoft.com/en-us/library/ms379570(v=vs.80).aspx I know that Arrays in .net is stored in a contiguous fashion. (
http://msdn.microsoft.com/en-us/library/windows/apps/br205757.aspx shows the subset of Win32 / COM that can still be used in
http://jsbin.com/uxepap/17/edit How do I wrap all links from the third to the last with
http://tinkerbin.com/pla4NzJ9 I've created a tiny demo, where a backbone view is instantiated and using
@ http://tinyurl.com/6mjd2nj I have a site that was just moved to a new server

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.