Skip to content
Snippets Groups Projects
Unverified Commit 89c4f2ba authored by Sean Madsen's avatar Sean Madsen Committed by GitHub
Browse files

Merge pull request #455 from aydun/patch-2

Update javascript.md
parents fda16b5f 8dbc4294
No related branches found
No related tags found
No related merge requests found
......@@ -109,10 +109,10 @@ If your code needs to work across multiple versions of CiviCRM, where jQuery was
```javascript
(function($) {
// your code here
})(CRM.$ || cj)
})(CRM.$ || cj);
```
For more examples you can take a look at a [gist](https://gist.github.com/totten/9591b10d4bc09c78108d) from Tim Otten on javascript alternatives For more information on javascript closures, [here is some further reading](http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth).
For more examples you can take a look at a [gist](https://gist.github.com/totten/9591b10d4bc09c78108d) from Tim Otten on javascript alternatives. For more information on javascript closures, [here is some further reading](http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth).
## Accessing CiviCRM API from JS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment