Permalink
Browse files

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

  • Loading branch information...
1 parent e9a0ab8 commit aee598638bae3615e2e5cd015fc9d1ee9a0c248d @ericf committed Dec 5, 2012
Showing with 4 additions and 8 deletions.
  1. +1 −1 conf/config.json
  2. +3 −7 public/js/app.js
View
@@ -10,7 +10,7 @@
"typekit": "http://use.typekit.com/wkh7ffm.js",
"yui": {
- "version": "3.5.1",
+ "version": "3.7.3",
"client": {
"modules": {
View
@@ -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']}
]
}
}

0 comments on commit aee5986

Please sign in to comment.