Backbone.js is a JavaScript library that provides structure to RESTful web applications.

learn more… | top users | synonyms (2)

8
votes
0answers
437 views

Backbone-relational hasmany best practices

I am new to Backbone-relational, I am not sure what is the right way to use HasMany. I have a Parent model which have many children (by "many" I mean thousands of children). In order to avoid ...
4
votes
0answers
255 views

zf2 Restful controller Backbone PUT method incorrect parsing

I have an issue with my ZF2 based application and Backbone at frontend. Somewhere at frontent I run this.model.save({ city_id: parseInt( this.$el.find( '#city_id' ).val() ), from: this.$el.find( ...
3
votes
0answers
64 views

AdBlock blocks requirejs / backbone code (Locks the entire page)

Well, we have a page running RequireJS, which loads the dependencies, creates the approuter and well, all backbone load. On html page, we load : <script> require.config({ baseUrl: ...
3
votes
0answers
197 views

Android native browser 2.3.7: Youtube iframe API “onReady” event not fired

I am testing my backbone app on Win/mac chrome & firefox, iPad, iPhone, Android 4.3, Android 4.1.2, and Android 2.3.7. The Youtube iFrame API is working as expected on all platforms except Android ...
3
votes
0answers
432 views

Backbone paginator not paginating my collection

define([ 'underscore', 'backbone', 'models/shared_object', 'backbone_paginate' ], function(_, Backbone, Shared_Object){ "use strict"; var myCollection= Backbone.Collection.extend({ ...
3
votes
0answers
436 views

Display the same Backbone.js Validation Errors Message in multiple locations on same page

So I've been using the n-time backbone.js validation (https://github.com/n-time/backbone.validations) for client side form validation with great success in my current project. The thing is that while ...
3
votes
0answers
196 views

Creating children objects of not saved model in Backbone using Backbone-relational

I'm new to backbone. I have rails3 app. These are my backbone models: class AppName.Models.Order extends Backbone.RelationalModel paramRoot: 'order' relations: [ type: Backbone.HasMany ...
3
votes
0answers
163 views

using backbone router with Aura

Trying to build a web client application with backbone aura. Struggling to add router to the application. did anyone try adding router to backbone aura yet?
3
votes
0answers
543 views

Ccoenraets backbone-cellar example with multiple tables (backbone.js / SLIM framework)

What I am trying to accomplish is getting ccoenraets backbone-cellar example to work with multiple tables in the cellar database. What I have tried so far by altering 'part-1' of the example: I ...
2
votes
0answers
41 views

Mocha/Chai async tests 'done()' fn not working

I'm testing a bank model I have as follows: describe('Bank Model - Ajax', function () { it('loads bank', function (done) { var bank = new Bank(); bank.OnLoaded = _(function () ...
2
votes
0answers
59 views

Page is getting hanged on clearing an backbone views array

i am clearing a backbone array by the following code but i see the browser is getting hanged when this.views = [] is executing. resetView : function(){ this.views = []; }, Did anybody came ...
2
votes
0answers
152 views

Backbone/underscore js “too much recursion” and “Inspect target crashed” error

I have written a code for to-do list and its working fine but some times it giving error Backbone/underscore js "too much recursion" and "Inspect target crashed" error like this is console.. Html ...
2
votes
0answers
91 views

Uncaught Error: No define call for pnotify

main.js : requirejs.config({ enforceDefine: true, paths: { "jquery": "libs/jquery/jquery-min", "underscore": "libs/underscore/underscore-min", "backbone": ...
2
votes
0answers
92 views

How to test custom events with Jasmine (using Backbone)

I have a function below that is bound to a button click. Code below part of TeaserView class. addCard: function() { if(!this.model.get("loggedIn")){ Backbone.pubSub.trigger("Signup"); ...
2
votes
0answers
164 views

column-toggle not working in jquery mobile 1.3.2, backboneJS and RequireJS with $.mobile.linkBindingEnabled = false;

I am having some trouble when I open a dialog in Table: Column Toggle. I use BackboneJS, RequireJS, JQuery Mobile, Phonegap 3.0 My configuration for prevent jquery routing is: ...

15 30 50 per page