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

learn more… | top users | synonyms (2)

1
vote
2answers
25 views

Backbone.js - Uncaught TypeError: cannot set property … of undefined [closed]

I keep getting the following errors in the Chrome dev tools console: However, I can't seem to figure out what's wrong the collections.js file. Any suggestions? index.jade //- HTML here... //- JS ...
2
votes
2answers
17 views

Backbone.js - model.save() not firing a PUT request

I have a basic application using Backbone.js that is not making PUT calls (updating model). From the front-end, I calling a models save function doesn't make a PUT call; however, if I replace it with ...
0
votes
1answer
8 views

Should I use the Underscore-compatible build of Lo-Dash when using it with BackboneJS?

I noticed that Lo-Dash has a special Underscore-compatible build, ostensibly to address differences in function arguments/operations (since Lo-Dash is a superset of Underscore, I assume there are no ...
1
vote
2answers
194 views

Best practices for shared constants between server and client using Backbone.JS

What is the best way to handle shared constants between server code and client code using Backbone.JS ? For example, say I have this map of user roles: user_roles = { 1 => "member", 2 => ...
4
votes
2answers
1k views

Why are events not firing after the second render in Backbone.js?

I am creating an app in Backbone.js which has a parent and multiple child views. The child views contain links which they listen to and perform a function. The parent stores a list of all of the ...
0
votes
0answers
33 views

How can I have a dynamically allocated DOM event fire as well as a backbone event?

I want to have a loader attached on my buttons on mousedown on every page. I have a function that fires after the layout renders and passes in the top level view, then grabs every button and attaches ...
0
votes
1answer
17 views

Backbone Model .changedAttributes() not showing all changes

My abbreviated model looks like this: var model = new Backbone.Model({ defaults: { x: 50, y: 50, constrain_proportions: true }, initialize: function () { // Do stuff to ...
0
votes
1answer
29 views

Backbone.js events on templates

I am trying to assign a event to a button using backbones events: . I gave it a try how all the tuts done it but nothing has worked so far. My suspicion is that I can't add events because the content ...
0
votes
0answers
14 views

How to add event listeners on handlebars template in a backbone view

So I'm fairly new to Backbone and am trying to create a navigation within a view. I'm using Handlebars for templating and am not sure how I would bind data to it from Backbone. I'm trying to use the ...
0
votes
0answers
11 views

Backbone.Paginator ignoring attribute

I managed to get the backbone.js plugin backbone.Paginator to pull in my data from my API in JSON format. However it's pulling in the whole file and ignoring the attribute perPage even though I've set ...
13
votes
7answers
4k views

Default values of Backbone.js view?

I'm working in Backbone.js and I was wondering if you can set default values much the same way that you can set the default values of a model?
2
votes
3answers
195 views

Jslint does not like !==, seems to prefer ===, relation to typeof

Unexpected 'typeof'. Use '===' to compare directly with undefined. if (typeof exports !== 'undefined') { This is code from backbone.js. It does not seem to like the syntax. How can I change ...
1
vote
1answer
35 views

Combining d3.js and backbone.js

I am working on a project which combines all the d3.js visualizations with backbone.js into a single page application. Since I have many visualizations such as bar chart, pie chart, and so on, i was ...
2
votes
1answer
25 views

Distributing underscore.js-based templates

I need to bundle client side templates for other people to use as part of a library of Backbone components. I can not use RequireJS or any other AMD solution. The idea I've had is to combine all the ...
1
vote
1answer
22 views

Live filtering of a backbone.js view?

I have a table view of a backbone.js collection (loaded via json) of over 100 employees. What I am trying to create is a "live search" (more like a "filter") field for users that, as they type, ...

1 2 3 4 5 631
15 30 50 per page