Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
finom committed Oct 30, 2013
1 parent e1f3ecd commit 68a6e2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,21 @@ Cool?
* Remove jQuery dependence
* Merge MK.DOMArray with MK.Array
* Create MK#addDependence method

```js
mk.addDependence( 'perimeter', 'a b', function() { return ( this.a + this.b ) * 2} );

mk.addDependence( 'a', 'perimeter b', function() { return this.perimeter/2 - this.b } );

mk.addDependence( 'b', 'perimeter a', function() { return this.perimeter/2 - this.a } );
```

* Make possible to add DOM events like so:

```js
mk.on( 'click::myKey', f );
// Instead of
// mk.$el( 'myKey' ).on( 'click', f.bind( this ) );
```

* Plugins
* MK.MVVM
* MK.Hash
Expand Down

0 comments on commit 68a6e2c

Please sign in to comment.