diff --git a/README.md b/README.md index 1c86ee0..08be0f4 100644 --- a/README.md +++ b/README.md @@ -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
@@ -12,7 +12,7 @@ Add `data-view-setup-function-name` attributes to your HTML:
``` -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 = { @@ -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/) diff --git a/bower.json b/bower.json index c4aea8c..72c9d99 100644 --- a/bower.json +++ b/bower.json @@ -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 " diff --git a/viewloader.js b/viewloader.js index c8c29e0..623d3cb 100644 --- a/viewloader.js +++ b/viewloader.js @@ -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,$) {