Permalink
Browse files

Capitalise waypoint to Waypoint.

  • Loading branch information...
1 parent a94a85e commit 335c728caba63a3c06f87ba38a5f8536ed3f8910 @lukemorton committed Feb 9, 2012
Showing with 13 additions and 13 deletions.
  1. +1 −1 Cakefile
  2. +1 −1 README.md
  3. +1 −1 examples/browser/index.html
  4. +2 −2 examples/coffee/route-map.coffee
  5. +5 −5 examples/coffee/routes.coffee
  6. +3 −3 examples/js/routes.js
View
@@ -40,7 +40,7 @@ task 'build', 'Create a browser edition of Waypoint', ->
if (typeof define === 'function' && define.amd) {
define(definition);
} else {
- this.waypoint = definition();
+ this.Waypoint = definition();
}
}(function () {
function require(path) {
View
@@ -49,7 +49,7 @@ normal:
``` js
var waypoint = require('waypoint'),
- router = new waypoint.Router;
+ router = new Waypoint.Router;
router.routeMap({
'/' : function () {
@@ -13,7 +13,7 @@
<script>
jQuery(function ($) {
var $content = $('#content'),
- router = new waypoint.Router({
+ router = new Waypoint.Router({
routeMap : {
// Create a route map so that we can set
// callbacks for different URIs
@@ -1,5 +1,5 @@
-waypoint = require '../../lib/waypoint'
-router = new waypoint.Router
+Waypoint = require('../../lib/waypoint')
+router = new Waypoint.Router
baseUri: '/'
# Use routeMap to generate and add routes to router
@@ -1,8 +1,8 @@
-waypoint = require '../../lib/waypoint'
-router = new waypoint.Router
+Waypoint = require('../../lib/waypoint')
+router = new Waypoint.Router
# Add route with Route instance
-router.route(new waypoint.Route('GET', '/', -> console.log '/'))
+router.route(new Waypoint.Route('GET', '/', -> console.log '/'))
# Add route with args
router.route('GET', '/', -> console.log '/')
@@ -22,8 +22,8 @@ router.dispatch('POST', '/contact')
# Multiple routes
router.routes = [
- new waypoint.Route('GET', '/path', -> console.log 'path')
- new waypoint.Route('GET', '/another', -> console.log 'another')
+ new Waypoint.Route('GET', '/path', -> console.log 'path')
+ new Waypoint.Route('GET', '/another', -> console.log 'another')
]
router.dispatch('/path')
View
@@ -1,6 +1,6 @@
-var waypoint = require('../../lib/waypoint');
-var Router = waypoint.Router;
-var Route = waypoint.Route;
+var Waypoint = require('../../lib/waypoint');
+var Router = Waypoint.Router;
+var Route = Waypoint.Route;
var router = new Router({
'routes' : [

0 comments on commit 335c728

Please sign in to comment.