coffeescript
Mock/Stub constructor
I have the following code: class Clients constructor : -> @clients = [] createClient : (name)-> client = new Client name[详细]
2023-04-07 17:48 分类:问答CoffeeScript, Why do I need the explicit return on a conditional
I was trying to learn CoffeeScript, and made this simple class as first try: class test fib: (x) ->[详细]
2023-04-07 12:44 分类:问答Dynamic class generation in CoffeeScript
What is the best way to dynamically create classes in CoffeeScript, in order to later instantiate objects of them?[详细]
2023-04-07 12:37 分类:问答Does rails 3.1 include the entire jQuery library?
I have been really p开发者_开发百科uzzled because I was trying to work out some jQuery tutorials in coffeescript for rails 3.1 and it seems like none of the animation functions of jquery work.[详细]
2023-04-07 11:17 分类:问答How to loop chained calls elegantly in JavaScript/CoffeeScript?
I\'m using Soda to write Selenium tests in Node.js and I have a situation where I have to press the down key several times.[详细]
2023-04-07 10:02 分类:问答Export a class from a CoffeeScript file
If I have a CoffeeScript class defined in a separate file, which I\'m calling from my main script, I can make the functions within the file globally visible, but not the class.[详细]
2023-04-07 06:56 分类:问答How do you compile CoffeeScript in a Jakefile?
I would like to create a Ja开发者_如何学Gokefile which compiles some CoffeeScripts to install a NodeJS application.[详细]
2023-04-07 06:07 分类:问答Wait for ajax to complete before method return
I know I can set the call to synchronous, or wrap everything preceeding in the complete() callback, but it seems inelegant. Here\'s what i\'ve got:[详细]
2023-04-07 02:48 分类:问答How can I use Razor expressions within a Coffeescript file?
I would like to do something like this in CoffeeScript so that I can move all my script off into coffe files:[详细]
2023-04-06 20:52 分类:问答Rails/Javascript: How to inject rails variables into (very) simple javascript
I want to write up a very simple javascript calculator in rails which multiplies the quantity of an input field by a number stored in a rails variable (@item.base_price)[详细]
2023-04-06 20:07 分类:问答