Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Dec 15, 2016
1 parent efac294 commit a019e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -35,7 +35,7 @@ jCreate works with the [jQuery Event Delegation].
```js
// bind 'create' event.
$( '#dataTable tbody' ).on( 'create', 'tr', function( event ) {
console.log( event.$target.text() );
console.log( event.$currentTarget.text() );
});

// add a new 'row'.
Expand Down Expand Up @@ -142,7 +142,7 @@ var helloWorldComponent = (function () {
};

$(document).on('create', '[data-component~="' + _componentName + '"]', function( event ) {
var options = event.options( _componentName ); //= {name="Marco"}
var options = event.options( _componentName ); //= {name:"Marco"}
module.greeting( options.name ); //= Hello Marco!
});

Expand Down

0 comments on commit a019e0d

Please sign in to comment.