Skip to content

Commit

Permalink
Bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
ricottatosta committed Feb 1, 2016
1 parent c94cca1 commit 158641c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Not tested with ember-cli yet.
var App = Ember.Application.extend({
"EMBER_WIZ": {
POD_DIR": your_pod_dir, // default: "pods/",
"COMPILED_HBS": false // if template are pre-compiled, set to true
"COMPILED_HBS": false // if templates are pre-compiled, set to true
}
});
Expand Down
6 changes: 3 additions & 3 deletions ember-wiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @overview Ember Wiz - Lazy loading of Ember routes through SystemJS
* @copyright Copyright 2015-2016 ProgHettoLab, an Integrated Planning Workshop
* @license Licensed under MIT license
* @version 0.1.2
* @version 0.1.5
*
*/

Expand All @@ -11,7 +11,7 @@ define([
], function () {
function init(application) {
application.Router = Router.extend({"EMBER_WIZ": application.EMBER_WIZ});
application.RoutingService = Routing.extend();
application.RoutingService = RoutingService.extend();
application.inject('route', 'routing', 'service:Routing');
application.inject('controller', 'routing', 'service:Routing');
}
Expand Down Expand Up @@ -86,7 +86,7 @@ define([
initialURL = this.get('location').getURL();
}

var recognizer = this.router.recognizer;
var recognizer = this.get('router.recognizer');
var recognize = recognizer.recognize.bind(recognizer);
var handlers = recognize(initialURL);
var target = handlers[handlers.length - 1].handler;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-wiz",
"version": "0.1.4",
"version": "0.1.5",
"description": "Lazy loading of Ember routes through SystemJS",
"author": "ricottatosta <[email protected]>",
"keywords": ["lazy", "loading", "ember", "route"],
Expand Down

0 comments on commit 158641c

Please sign in to comment.