The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
12 views

Backbone Marionette code improvement 2

What's a better way to implement the code below? As much as possible, lessen the repeated lines: vent.on("createAccountLayout:rendered", function() { ...
0
votes
1answer
31 views

Backbone Marionette code improvement

I have this repetitive block of code and I'm looking for ways to make it reusable and as flat as possible. Here it is: Controller.showKeyboardRegion = function() { ...
2
votes
1answer
84 views

Can I use jQuery's .when() to make this code DRY?

I'm trying to run a bit of code when my loginManager is logged in. It might be already, or I might be waiting: var loginManager = chrome.extension.getBackgroundPage().LoginManager; // If the ...
4
votes
1answer
76 views

Javascript plugin DRY

I have written a Backbone View (javascript) for a component called "twist-panel". A twist panel is basically a card flip, it has a front and back side, and can flip to the back and to the front. ...
0
votes
0answers
22 views

Trying to test my object's ability to save. It has some dependencies on a parent, though. Which test suite should be responsible?

I have an object of type PlaylistItem. In the 'real application', a PlaylistItem will always be added to a Playlist before saving. However, I am trying to use Jasmine to test my PlaylistItem's save ...
0
votes
0answers
123 views

I implemented a User model with BackboneJS and RequireJS with test cases in Jasmine. How can I improve?

I've been taking a stab at implementing test cases using the Jasmine testing framework. To do so, I've made an application which has a User object. This User object is created by the server, but its ...
0
votes
1answer
1k views

backbone and google maps with markers [closed]

I am fairly new to backbone and javascript, so I am not sure if I am on the right path... Basically I have an API that returns posts that have coordinates associated with them. I want, for now, to ...
3
votes
1answer
596 views

Need some critics about my backbone code

I`m very new to backbone.js and javascript also :) I would like to hear some reasonable critics / advice against my javascript code based on backbone.js framework with backbone-forms. The aim of this ...