Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Menno van Slooten committed Dec 12, 2014
1 parent 124ed9b commit bae2e3f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -71,6 +71,15 @@ the document when the script is run. If you add new .foo elements (for example
via ajax), they will not initialized. With jQuery directives
you can do this:

```javascript
$.directive('.foo', function(element, attrs) {
// Initialize jquery.foo.js plugin
element.foo();
});
```

Or, if you prefer attributes over classes:

```html
<div foo><div>
```
Expand Down

0 comments on commit bae2e3f

Please sign in to comment.