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

  • Home
  • SEARCH
  • 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 7894619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:26:30+00:00 2026-06-03T07:26:30+00:00

I just upgraded my Backbone to 0.9.2 and when I do a view.remove() like

  • 0

I just upgraded my Backbone to 0.9.2 and when I do a view.remove() like I did with the older version it no longer is working for me.

I have a popup.js view called processingView that just has some jquery code wrapped in an view extend. I assign this to a variable called processing.
this.processing = new processingView();
When I fire an event to remove the processing object from the Dom by saying. this.processing.remove() it no longer gets removed. If I revert back to the older version of Backbone it works.

Anyone got any ideas why this would be.
My code is a huge amount of source files so its hard to paste all this in here. But as far as what I’m trying to do it should be straight forward remove a view object from the dom.

ANSWERED MY OWN QUESTION

Ok I was not using setElement when I was manually setting View.el

If you’ve ever manually set this.el in a Backbone View to be a particular DOM element, you’ll want to use setElement instead.

Its still not clear what the difference between view.el and view.$el. Maybe someone can straighten that out for me.

  • 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-03T07:26:31+00:00Added an answer on June 3, 2026 at 7:26 am

    view.$el is equivalent to $( view.el ). It’s a convenience so that you don’t have to incur the hassle and additional overhead of repeatedly calling the jQuery constructor. You may want to structure your code (if possible) so that you don’t need to manually set el and call setElement. You can see my answer to another question for an example.

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

Sidebar

Related Questions

I just upgraded to iPhone SDK 3.2 Beta 4. Since doing so, I have
I just upgraded jQuery to version 1.4.2 and I am now getting an error
I just upgraded my PHP version from v5.3.1 to v5.3.9 . Suddenly class constructors
I just upgraded to rails 3.2 Everything is working fine except error pages no
I just upgraded to Vista 64bit. I was running the 32bit version without any
I just upgraded from VS2010 RC to RTM. Now my areas aren't working. I
I just upgraded to the latest Java > java -version java version 1.7.0_03 Java(TM)
I just upgraded to the latest 4.3 Xcode. I have my plist.which is preprocessed
I just upgraded to Ubuntu 9.1 which comes with gcc 4.4.1 and I have
I just upgraded to the RTM version of the OData Library. I've noticed what

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.