Answer the question
In order to leave comments, you need to log in
Global functions in CoffeeScript?
I am finally switching to CoffeeScript in my rails project. Before that, everything was written in pure JavaScript. A problem arose immediately.
File1
$ ->
function1 -> some code
$(function(){
function1 = function(){some code}
});
$ ->
function1()
$(function(){
function1();
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question