Skip to content

Commit

Permalink
Capitalise waypoint to Waypoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorton committed Feb 9, 2012
1 parent a94a85e commit 335c728
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cakefile
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -49,7 +49,7 @@ normal:

``` js
var waypoint = require('waypoint'),
router = new waypoint.Router;
router = new Waypoint.Router;

router.routeMap({
'/' : function () {
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/index.html
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/coffee/route-map.coffee
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions examples/coffee/routes.coffee
@@ -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 '/')
Expand All @@ -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')
6 changes: 3 additions & 3 deletions examples/js/routes.js
@@ -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' : [
Expand Down

0 comments on commit 335c728

Please sign in to comment.