coffeescript
backbone.js hover on root dom doesn't work
Why the hover event bind on the root dom doesn\'t work? Though by default, i can put the <div class=\"activity span\"></div> around the template and with a wrapper <div></div>[详细]
2023-04-06 17:36 分类:问答Why are the ActionView::Helpers::UrlHelper not available in the assets pipeline?
In ajax heavy applications having a javascript/coffeescript file that is aware of the routes in a rails application seems common and reasonable. Yet it is not easy access the url_for helper in your as[详细]
2023-04-06 13:52 分类:问答How do I sum up properties of a JSON object in coffescript?
I have an object that looks like this one: object = title : \'an object\' properties : attribute1 : random_number: 2[详细]
2023-04-06 07:44 分类:问答deploying Rails 3.1 namespaced assets to Heroku
I have a Rails 3.1 application running on Heroku Cedar and it has a custom built Admin panel. Admin is just a namespaced controller/view combination which live in controllers/admin and in views/admin.[详细]
2023-04-06 02:26 分类:问答rewrite backbone.sync
I\'m using backbone.js with websockets and sending data to the server based on events. Is it possible to design/rewrite Backbone.sync to transport model changes to the server in a normalized way?[详细]
2023-04-05 19:56 分类:问答Backbone error, Object add has no method 'bind'
items.bind \'add\', (item) => @addOne(item) addOne: (item) -> view = new ListItem({model: item}) ..initialization of the view throws this error: TypeError: Object add has no method \'bind\'[详细]
2023-04-05 16:45 分类:问答Can't grok the process of updating UI on model change
I have a collection of models. When a model changes it triggers a change event on the collection. I watch for the collection change event and then I update the UI.[详细]
2023-04-05 10:12 分类:问答Node.js: Server.js is getting cluttered with functions
I have a server.js with many functions. app.post \'/record2\', (req,res) -> app.post \'/record\', (req,res) ->[详细]
2023-04-05 07:37 分类:问答Upgrading a Model (backbone.js)
Right now I have a generic User model for all users. When a user logs it\'s determined wether they are user type 1 or user type 2. These two types need totally different models to represent them but s[详细]
2023-04-05 07:07 分类:问答How can I set multiple object properties simultaneously with CoffeeScript?
dbLocation[latitude] = data[1] dbLocation[longitude] = data[2] dbLocation[locationText] = locationTex开发者_如何学Ct[详细]
2023-04-05 05:43 分类:问答