In Javascript polluting the global namespace is generally regarded as a bad thing. This is why Coffeescript wraps all of your Javascript in a (function() {}).call(this); wrapper.
I would like to use some erb in my .coffee files, like the following example myLatlng: new google.maps.LatLng(<%=@location.latitude %>, <%=@location.longitude %>)
Please tell me how to write javascript below in coffeescript. setTimeout(function(){ something(param); }, 10开发者_如何学C00);
I want to pass two anonymous functions as arguments for jQuery\'s hover, like so: $(\'element\').hover(
I am trying to get barista up and running in a Rails 2.3 application (that may not be moved to a new version of rails for the time beeing..). I switched the app to bundle so I added the following gems
I have a scaffold called post which has a title and a description. On my layout I have a link to create a new post that has :remote => true. How would I make it when I click on that remote link to cha
I\'m having some trouble creating functions with CoffeeScript, I guess I\'ve missed something. For my users controller I\'d like to create client-side validation for a signup form. I think I\'ve misse
$.ajax \'/\', type: \'GET\' dataType: \'html\' error: (jqXHR, textStatus, errorThrown) -> $(\'body\').append \"AJAX Error: #{textStatus}\"
Can anyone assist with the TextMate Run command? I am n开发者_JAVA技巧ot sure how to set the variable and its value in the TextMate in order to Run command + R and get the result of CoffeScript file.
I\'d like to use namespaces as one would in javascript by using the keyword \"with\", but CoffeeScript reports this as a reserved keyword and refuses to compile is there any way I could use namespaces