Skip to content

Commit

Permalink
Version bump & readme tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Smithett committed Apr 29, 2014
1 parent 7dcedf2 commit e4a375a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
viewloader is a tiny little framework-agnostic JS bootstrapping thing that lets you attach JS behaviour to a HTML element using data attributes.

## How to use it
Add `data-view-setup-function-name` attributes to your HTML:
Add `data-view-component-name` attributes to your HTML:

```html
<div data-view-dropdown>
Expand All @@ -12,7 +12,7 @@ Add `data-view-setup-function-name` attributes to your HTML:
</div>
```

Create an object for your app that lists setup functions for each type of view.
Create an object for your app that lists setup functions for each type of component.

```javascript
myApp.views = {
Expand Down Expand Up @@ -43,7 +43,7 @@ viewloader.execute( myApp.views, $("#updated-dom-container") );
```

## Dependencies
viewloader needs either [jQuery](http://jquery.com/) or [Zepto](http://zeptojs.com/). If you're not using either of those, it's 25 whole lines of JavaScript, so I’m sure you can rewrite it to suit your needs :)
viewloader needs either [jQuery](http://jquery.com/) or [Zepto](http://zeptojs.com/). If you're not using either of those, it's 21 whole lines of JavaScript, so I’m sure you can rewrite it to suit your needs :)

## License
viewloader is released under the [MIT License](http://ben.mit-license.org/)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "viewloader",
"main": "viewloader.js",
"version": "0.0.2",
"version": "0.0.3",
"homepage": "https://github.com/bensmithett/viewloader",
"authors": [
"Ben Smithett <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion viewloader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// viewloader 0.0.2
// viewloader 0.0.3
(function(root, factory) {
root.viewloader = factory({},(root.jQuery || root.Zepto || root.$)); // Browser global
}(this, function(viewloader,$) {
Expand Down

0 comments on commit e4a375a

Please sign in to comment.