Skip to content

Commit b7b32d4

Browse files
committed
fix typo in readme
1 parent 55b9a5b commit b7b32d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For HAML:
4545

4646
### Global Functions
4747

48-
Any functions that need to be accessible in the global scope should be defined in ```global.js.coffee``` using the ```App``` namespace. Below is an example of one of our favorite functions that we use to submit a jorm using AJAX as a JSON request.
48+
Any functions that need to be accessible in the global scope should be defined in ```global.js.coffee``` using the ```App``` namespace. Below is an example of one of our favorite functions that we use to submit a form using AJAX as a JSON request.
4949

5050
```
5151
# app/assets/javascripts/global.js.coffee
@@ -63,7 +63,7 @@ App.remoteSubmission = ($form, onCompleteCallBack) ->
6363
return
6464
```
6565

66-
Now you can access this function from anywhere in the application by just calling ```App.remoteSubmission($('#myForm', alert('Hello'))```
66+
Now you can access this function from anywhere in the application by just calling ```App.remoteSubmission($('#myForm'), alert('Hello'))```
6767

6868

6969
### Page Specific JavaScript

0 commit comments

Comments
 (0)