Skip to content

Commit

Permalink
Use 'export default'
Browse files Browse the repository at this point in the history
  • Loading branch information
fudanchii committed Feb 17, 2015
1 parent 10bc105 commit 99cc2d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/shreds_components/routes.js
Expand Up @@ -20,4 +20,4 @@
Shreds.$.trigger('shreds:feed:postrender');
}
});
})(window.Shreds, require('router').Router);
})(window.Shreds, require('router'));
2 changes: 1 addition & 1 deletion lib/assets/javascripts/router.es6
Expand Up @@ -5,7 +5,7 @@ const link_selector = 'a[target!=_blank]:not([href^=http]):not([href^=javascript

var debug, $anchor, on_dispatch;

export class Router {
export default class Router {
constructor(opts) {
debug = opts.debug || false;
$anchor = opts.anchor || null;
Expand Down
2 changes: 1 addition & 1 deletion spec/javascripts/lib/router_spec.js
@@ -1,6 +1,6 @@
//= require spec_helper

var Router = require('router').Router;
var Router = require('router');

describe('router.js', function () {
var router = null;
Expand Down

0 comments on commit 99cc2d3

Please sign in to comment.