I have an app that updates backbone models between two clients over websockets. I\'d like to keep the sync procedure very generalized so I\'m aiming to be able to deflate the model send JSON over th
In JavaScript, one would define a private member variable by making it a local variable in a function that returns a closure:
I\'d like to use CoffeeScript with Nano.js, a minimalistic CouchDB module. In JavaScript, the requirements are:
I have this code: $(\'#my_form .submit\').click( -> $.ajax( -> type: \"post\", url: \"????\", data: $(\"#myform\").serialize(),
I am using Backbone.js (version 0.5.3) and am having some trouble with a success callback when saving a model. It isn\'t being run, even though the model is successfully saved on the server.
I am trying to do what seems like it should be simple, but for some reason is eluding me.I want to add a click event to a link in my tasks.js file like so:
Using Backbone.js: When a user logs out is it normal to delete a bunch of models and collections? That\'s 开发者_高级运维what I plan to do in my application to prevent zombie data/bindings but I do
I\'m still pretty new to classical OOP using JavaScript; this seems like a general OOP question, but ideally I\'m looking for an actual code example using CoffeeScript to help me learn.
I know other posts have been made regarding this, but so far the answers I\'ve seen have not been helpful, and slightly different from my situation.
I have a Flot chart and x-axis displays time - tick size equaling one day. I am displaying durations of events that take place at various times of the day and I would like to stack them. Flot\'s time