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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:39:21+00:00 2026-06-17T23:39:21+00:00

i have been playing with Backbone, I am trying to learn how it works

  • 0

i have been playing with Backbone, I am trying to learn how it works so I can create phonegap app using backbone. With version 0.9.9 all worked well, after upgrade to 0.9.10 it returns:

TypeError: collection[method] is not a function

   collection[method](resp, options);

backbone-0.9.10.js (line 821)

It seems that problem has something to do with following sections:

var params = _.extend({
    'method': 'GET',
    'url': this.url,
    'cache': true,
    'dataType': 'json',
    'processData': true
}, options);

console.log(params);

return $.ajax(params);

I am unable to find out what is wrong.

Working version with 0.9.9

http://92.245.6.92/backbone.peoples/index.html

Upgraded and not working version with 0.9.10

http://92.245.6.92/backbone.peoples/index2.html

Could you please help me whether there is major fault in my code or what happened. 0.9.10 is release candidate for 1.0 so I expect this not to work with any new version.

Thanks.

  • 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-17T23:39:22+00:00Added an answer on June 17, 2026 at 11:39 pm

    The fetch success callback signatures was changed from 0.9.9 to 0.9.10. The callback signature is now

    function(collection, resp, options) { ...
    

    In your app you’ve overridden Collection.sync, and you execute the callback with (app.js:35):

    options.success = function(data, textStatus, jqXHR) {
        model.parse(data);
        if(success)
            success(data, textStatus, jqXHR);
    };
    

    This leads to a situation where Backbone tries to call a method reset on the data object, which is a vanilla javascript array and doesn’t have such a method.
    To comply to the new API, you need to call it with:

    var collection = this;
    options.success = function(data, textStatus, jqXHR) {
        model.parse(data);
        if(success)
            success(collection , data, options);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been playing with CSS trying to create a 3d box that you
I have been playing with Expect/TCL today and I was hoping someone can tell
I have been playing around with Google Apps Script today and I am trying
I have been playing around with the MVP pattern using winforms for the last
I have been playing around with NSURLConnection. Now I'm trying to grab some data
I have been playing around with GC.GetTotalMemory(). When I create a local variable of
I have been playing around with asp.net webforms controls to learn how to use
I have been playing around with the EF to see what it can handle.
I have been playing with server side sorting/paging using YUI DataTable, and everything is
I have been playing around with in app purchases for a few days, everything

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.