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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:33:52+00:00 2026-05-25T17:33:52+00:00

In my current Backbone app, I have no problems creating or destroying models. The

  • 0

In my current Backbone app, I have no problems creating or destroying
models. The changes propagate to my server without any problems. But
whenever I try to do a model.save(attributes), I see a TypeError
thrown at this line: https://github.com/documentcloud/backbone/blob/master/backbone.js#L117

The model is updated on the (Rails) server, but something breaks
afterward. Here’s the stack trace. (Sorry, line numbers refer to
concatenated JS files.)

Backbone.Events.trigger() at application.js:11574 
_.extend._onModelEvent() at application.js:12092 
d() at (internal script):1426Backbone.Events.trigger() at 
application.js:11574 
_.extend.change() at application.js:11808 
_.extend.set() at application.js:11680 
_.extend.save() at application.js:11753 
Map.mapMoveGeoPointMode() at app.js:741 
(anonymous function)() at app.js:894 
jQuery.event.handle() at application.js:2966 
jQuery.event.add.elemData.handle.eventHandle() at application.js:2600 

In previous applications, I’ve had no little problems on saving models
like this. Any suggestions for what to look at?

Note: I don’t think I’m repeating this fellow’s problem of trying to save a model with no URL.

  • 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-05-25T17:33:53+00:00Added an answer on May 25, 2026 at 5:33 pm

    Given that the model is updated properly on the server, I don’t think this has anything to do with the save() function itself, but rather with the change event it’s triggering – I think you could test this simply by calling myModel.trigger('change') and seeing if that throws the same error.

    My best guess as to why this is happening is that somewhere along the way you’re binding something other than a function – e.g. an undefined variable – to the change event. I’d look for an error like this:

    myModel.bind('change', this.misspelledMethod, this);
    

    but it’s pretty much impossible to debug further without seeing actual code, not just a stack trace.

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

Sidebar

Related Questions

I have a collection of models in my Backbone.js application. It's a list of
I have a simple demo app like this Friend = Backbone.Model.extend name:null Friends =
I'm running around in circles seemingly missing something in my current app implementing backbone.js.
Current situation: Ubuntu 8.04 server edition (live server) Postgresql 8.3.7 (from standard repositories) Postgis
Current Application Server Configuration: IIS 6.0 Windows 2003 Server Standard Edition SP2 .NET Framework
My current setup.py script works okay, but it installs tvnamer.py (the tool) as tvnamer.py
Current demo here: http://www.studioimbrue.com/sites/eliotdudik I have the tabs system working wonderfully. I'm trying to
Current I have this code: var imgCount = 36; var container = $('#3D-spin'); var
I'm using backbone's underscore templating engine with the mustache formatting patterns. I have already
Current state: I have a tray icon, two context menus - one for about/options/exit/etc.

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.