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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:53:06+00:00 2026-06-17T18:53:06+00:00

Clarification: I’m only targeting modern browsers that support createEvent, addEventListener, etc…. Question I mean

  • 0

Clarification:

I’m only targeting modern browsers that support createEvent, addEventListener, etc….

Question

I mean natively, in JavaScript. A search shows that they are not using createEvent().

I’m looking here in the documentation for answers but did not find any.

I did a search for createEvent() in the source here but there were no hits.

How does backbone implement events from a native language perspective?

Are they using the observer pattern?

If JavaScript already has custom events ( via createEvent() ) available, and event listeners available as well ( addEventListener() why don’t they use the built in events?

  • 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-17T18:53:07+00:00Added an answer on June 17, 2026 at 6:53 pm

    Why isn’t Backbone using native events?

    It doesn’t make sense to use native events for anything but a backbone view. Backbone provides event management for models, collections, and generally

    Native events (via createEvent, addEventListener) are tied to a DOM node. Models and collections are not associated to a DOM node – you’d have to jump through a lot of unnecessary hoops to reuse that code.

    Do Backbone events follow the observer pattern?

    Not really, no. Backbone.Events is a lot closer to the publish-subscribe pattern. An object maintains a list of event listeners for a named event (via on), and then that object triggers a call to those listeners via trigger when it wants to fire an event.

    How are Backbone events implemented?

    At its core, Backbone maintains an array of event listeners per event (and in older versions of backbone, it used to use a linked list; that was slower). Each object maintains its own list of listeners; there is no central registry.

    On trigger, backbone calls all the listeners registered for that event; and it also calls any listeners for the special-cased all event.

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

Sidebar

Related Questions

Clarification/summary for the question -- we're looking for: a hosted bug tracking system, that
For clarification, here's the exact question in the about_regular_expressions.rb file that I'm having trouble
Quick clarification please I know BlockingQueues are threadsafe. Does that mean that I can
Clarification: this question is not about access modifier Confirmed that B.m() and b.m() statements
Just need some quick clarification I have 2 Queries in my Access Database that
I need some clarification. I have a Reportwriter dll that uses Crystal Reports. It
This is a clarification question I've got from a Java EE 5 migration. I'm
Clarification question as a follow up to: What exactly must I do in viewDidUnload?
Clarification: I'm referring to companies that pay developers, professionally. I understand why a hobby
Seeking clarification/confirmation: if I understand correctly, the following considerations about orphaned users apply only

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.