Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Upgrade to YUI 3.7.3 on the client. Simplify client route handlers.

  • Loading branch information...
commit aee598638bae3615e2e5cd015fc9d1ee9a0c248d 1 parent e9a0ab8
@ericf authored
Showing with 4 additions and 8 deletions.
  1. +1 −1  conf/config.json
  2. +3 −7 public/js/app.js
View
2  conf/config.json
@@ -10,7 +10,7 @@
"typekit": "http://use.typekit.com/wkh7ffm.js",
"yui": {
- "version": "3.5.1",
+ "version": "3.7.3",
"client": {
"modules": {
View
10 public/js/app.js
@@ -181,13 +181,9 @@ PhotosNearMe = Y.Base.create('photosNearMe', Y.App, [], {
routes: {
value: [
- {path: '/', callback: 'locate'},
-
- {path: '/places/:id/', callback: 'handlePlace'},
- {path: '/places/:id/', callback: 'showGrid'},
-
- {path: '/photos/:id/', callback: 'handlePhoto'},
- {path: '/photos/:id/', callback: 'showLightbox'}
+ {path: '/', callbacks: 'locate'},
+ {path: '/places/:id/', callbacks: ['handlePlace', 'showGrid']},
+ {path: '/photos/:id/', callbacks: ['handlePhoto', 'showLightbox']}
]
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.