coffeescript
Compare the differences between two backbone models?
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[详细]
2023-04-11 04:23 分类:问答Using closure for private variables in coffeescript
In JavaScript, one would define a private member variable by making it a local variable in a function that returns a closure:[详细]
2023-04-11 03:57 分类:问答Require a library with configuration in CoffeeScript?
I\'d like to use CoffeeScript with Nano.js, a minimalistic CouchDB module. In JavaScript, the requirements are:[详细]
2023-04-10 22:26 分类:问答How to use routes in .js.coffee script rails
I have this code: $(\'#my_form .submit\').click( -> $.ajax( -> type: \"post\", url: \"????\", data: $(\"#myform\").serialize(),[详细]
2023-04-10 21:36 分类:问答Why is my Backbone.js error callback being called even though Rails is supposedly returning a success response?
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.[详细]
2023-04-10 19:59 分类:问答How to register Jquery click event with coffeescript on rails 3.1
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:[详细]
2023-04-10 19:48 分类:问答Delete models and collections
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[详细]
2023-04-10 15:18 分类:问答How to define a CoffeeScript class that loads jQuery on first instantiation, then just fires a callback thereafter?
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.[详细]
2023-04-10 10:43 分类:问答Backbone events not firing
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.[详细]
2023-04-10 08:54 分类:问答Stacking bars in a Flot chart with time series
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[详细]
2023-04-10 04:21 分类:问答