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

learn more… | top users | synonyms (2)

0
votes
0answers
11 views

how to check if backbone model is changed

My model data is in the format - { feature1: { enabled: true, default: false }, feature2: { enabled: true, default: false } } And somewhere in my code I am setting it as ...
0
votes
0answers
7 views

Backbone + RequireJS Object Inheritance

I have an issue using Backbone with RequireJS. BaseListView.js define(['backgrid', 'backbone', 'underscore', etc.], function ( Backgrid, Backbone, _) { return ...
0
votes
0answers
10 views

Work with drag and drop events

I use the backbonejs and I need to do drag and drop. I have this code: HTML: <div class="shops" id="unique_id"> <div class="shop" id="unique_id"></div> <div class="shop" ...
0
votes
0answers
3 views

BackboneJS: REST DELETE does not trigger on destroy()

I am learning BackboneJS. With a REST backend I am trying to issue a HTTP DELETE in line: 'this.at(0).destroy();' in the below: var Task = Backbone.Model.extend({ defaults: { name: ...
0
votes
0answers
8 views

CKEditor + Bootstrap modal + LayoutManager plugin, selection.getStartElement() returns null

Clicking on a bunch of buttons of my app allows to create different customized instances of CKEditor, furhermore inside the textarerea is created a grid whith layoutmanager plugin. The created editor ...
0
votes
1answer
9 views

Backbone, Marionette, Grunt, jasmine-testing

I'm currently trying to develop my first Backbone Marionette application, I'm also using Grunt Task runner as well as Jasmine for testing. So I've created my own Model for login, and I want to use it ...
0
votes
0answers
34 views

Proper use of React JS & JavaScript libraries

I'm working in a small agency and we build multilingual websites that are complex enough to have me thinking about using a JS library, but not big enough to be considered a "Web App". We have ...
0
votes
1answer
34 views

listenOnce() running twice in backbone.js event

I had asked a question here that referred me to use using the backbone events. It works great, except that my event listener onFormSubmit() gets called twice. Normally I wouldn't care, but I have a ...
0
votes
1answer
24 views

PHP 7 “The ASP tags <%, %>, <%=” are deprecated

Per the manual: http://php.net/manual/en/language.basic-syntax.phptags.php I'm trying to learn some various MVC's and frameworks (namely Backbone.js at the moment) and the pages the frameworks use ...
0
votes
1answer
14 views

I want to pass Main application view a model using backbone

define(['jquery', 'underscore', 'backbone', 'app/js/components/models/Application' ], function($, _, Backbone , Application) { var applicationView = Backbone.View.extend({ model ...
0
votes
0answers
18 views

Require.js Backbone.js Router to ES6 - How to dynamically load imports based on the Route

I'm converting my Backbone.js Router which used require into the ES6 standard using import statements. In my router function I would normally have something like: "about" : function about() ...
0
votes
1answer
12 views

Re-render only changed section of Marionette.js CollectionView

Below is the code I currently have that re-renders a collectionView on every addition or removal of a model. However, it seems inefficient as it has to render the whole thing every time, when all I ...
0
votes
0answers
19 views

Using backbone.js and requireJS – why is the object called “Backbone” (with an uppercase “B”) in this case?

While scanning the TodoMVC example for using backbone.js with requireJS, I noticed something I don't understand. It might be just a small convention, but maybe I am not aware of something. Inside ...
1
vote
1answer
16 views

Add models to backbone collection outside Marionette ItemView definition

I have two backbone collections rendered in divs like so: <html> <body> <div id="one"> <-- Collection c1 rendered by Marionette ItemView App.V1 here ...
0
votes
0answers
20 views

How to change the state of elements within this view

I'm having issues understanding how to affect elements within a view using Backbone.js. I'm building a news feed. Within the news feed, user topics are pulled from the db using PHP and given a class ...

15 30 50 per page