Skip to content
Browse files

fixed some stuff with the docs

  • Loading branch information...
1 parent c63b117 commit fb081ee8593031aaf520d89766c1cb1686a589a2 Marc Grabanski committed Aug 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
8 README.md
@@ -4,9 +4,9 @@ A lightweight and simple router for jQuery Mobile.
Why
=====================
-**routerlite** was created to give you exactly the power you need to handle routes properly in jQuery Mobile with a very straightforward API. **routerlite** just gives you four simple methods: **routeinit**, **routechange**, **pageinit** and **pagechange**. You can bind a callback when a route or page is first visited, or every time a certain route or page is visited.
+**$.mobile.routerlite** was created to give you exactly the power you need to handle routes properly in jQuery Mobile with a straightforward API. **routerlite** just gives you four simple methods: **routeinit**, **routechange**, **pageinit** and **pagechange**. You can bind a callback either when a route or page is *first visited*, or *everytime* a certain route or page is visited.
-There are a lot of different types of page events in jQuery Mobile and sometimes it's hard to figure out which one to bind to and also how to get the current page context when that event fires. So **routerlite** helps you with normalizing event data so you don't have to do any guesswork. **routerlite** normalizes this for you and gives you the current page and path context every time you handle a route or page change.
+There are a lot of different types of page events in jQuery Mobile and sometimes it's hard to figure out which one to bind to and also how to get the current page context when that event fires. So **routerlite** helps you with normalizing event data so you don't have to do any guesswork. **routerlite** normalizes this for you and gives you the current **page** and **path** context every time you handle a route or page change.
API Methods
=====================
@@ -35,8 +35,8 @@ API Methods
doSomething();
});
```
-
-* **agechange **- fires each time the page is visited
+
+* **pagechange** - fires each time the page is visited
```javascript
// every time we visit the page with id="checkout" then run this code
$.mobile.routerlite.pageinit("#checkout", function(page){

0 comments on commit fb081ee

Please sign in to comment.
Something went wrong with that request. Please try again.