Skip to content

Commit e553782

Browse files
committed
fix get param function
1 parent 59adcd5 commit e553782

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jquery@1.11.3_2
1919
json@1.0.3
2020
launch-screen@1.0.2
2121
livedata@1.0.13
22-
local-test:nicolaslopezj:router-layer@0.0.4
22+
local-test:nicolaslopezj:router-layer@0.0.5
2323
logging@1.0.7
2424
meteor@1.1.6
2525
meteor-platform@1.2.2
2626
minifiers@1.1.5
2727
minimongo@1.0.8
2828
mobile-status-bar@1.0.3
2929
mongo@1.1.0
30-
nicolaslopezj:router-layer@0.0.4
30+
nicolaslopezj:router-layer@0.0.5
3131
observe-sequence@1.0.6
3232
ordered-dict@1.0.3
3333
random@1.0.3

iron-router.js

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ if (RouterLayer.router == 'iron-router') {
5454
}
5555

5656
RouterLayer._getParam = function(paramName) {
57+
console.log(this.ironRouter.current().params[paramName]);
5758
return this.ironRouter.current().params[paramName];
5859
}
5960
}

layer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ RouterLayer.go = function(routeName, params) {
112112
RouterLayer.getParam = function(paramName) {
113113
check(paramName, String);
114114

115-
this._getParam(paramName);
115+
return this._getParam(paramName);
116116
}

package.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package.describe({
22
name: 'nicolaslopezj:router-layer',
33
summary: 'A layer for Meteor Routers',
4-
version: '0.0.4',
4+
version: '0.0.5',
55
git: 'https://github.com/nicolaslopezj/meteor-router-layer'
66
});
77

0 commit comments

Comments
 (0)