coffeescript
Best pattern to have models listen to nested models and collections?
Using Backbone.js what is the best pattern to have models listen to all of their nested models and collections all the way down?[详细]
2023-04-10 03:31 分类:问答Use "coffee" instead of "node" command in production
I have an app.js that is running express.js. I wanna convert the code to coffeescript and thought about to create a app.coffee that I compile to app.js so I can run it with \"node app.js\".[详细]
2023-04-09 12:18 分类:问答How do I call Coffeescript templates in a Javascript ERB template in a jquery_ujs response?
I am using Coffeescript template in my Rails 3.1 app, so in my app/assets/javascripts/post.js.coffee file, I have something like:[详细]
2023-04-09 11:02 分类:问答How do I escape CoffeeScript reserved words?
I\'m trying to run some unit tests using QUnit written in CoffeeScript but there seems to be some reserved words that are causing problems, most notably \"not\". Is there a way to escape a CoffeeScrip[详细]
2023-04-09 09:13 分类:问答how do I use variables when binding backbone view events?
I want to bind an eve开发者_开发问答nt to a view using a selector I define in the view\'s options.[详细]
2023-04-09 05:36 分类:问答Can you nest collection calls? MongoDB
Can you nest collection calls in MongoDB? db.collection \'one\', (err, on开发者_如何转开发e) ->[详细]
2023-04-09 02:46 分类:问答Wrong object referenced when click event is activated
I\'m attempting to create an accordion effect for a document where when you click on an <h1> the rest of the document (the <div.container>) with toggle sliding up and sliding d开发者_C百科[详细]
2023-04-08 16:01 分类:问答How do I wait for a callback in coffeescript (or javascript)?
I\'m working on a password manager webapp that uses Parvez Anandam\'s pbkdf2.js for key generation (that is, turning a text password into a suitable 256 bit key for AES). I\'m using the project to lea[详细]
2023-04-08 08:52 分类:问答Comparison gives different results in Coffeescript/Javascript and Ruby
Example: [42] == [42] The result of the comparison gives different results: CS/JS: false Ruby:true On the other hand:[详细]
2023-04-08 06:03 分类:问答How do I preserve directory structure when compiling CoffeeScript?
I am new to Coffeescript and I wonder where I should put them. Eg. I have my app folder: app/app.js tests/unit/all.js[详细]
2023-04-08 05:54 分类:问答