We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2db93b commit 767d37cCopy full SHA for 767d37c
Pages/EditHikePage.js
@@ -1,18 +1,14 @@
1
var Observable = require("FuseJS/Observable");
2
var Context = require("Modules/Context");
3
4
-var hike = Observable();
+var hike = this.Parameter;
5
6
var name = hike.map(function(x) { return x.name; });
7
var location = hike.map(function(x) { return x.location; });
8
var distance = hike.map(function(x) { return x.distance; });
9
var rating = hike.map(function(x) { return x.rating; });
10
var comments = hike.map(function(x) { return x.comments; });
11
12
-this.onParameterChanged(function(param) {
13
- hike.value = param;
14
-});
15
-
16
function cancel() {
17
// Refresh hike value to reset dependent Observables' values
18
hike.value = hike.value;
0 commit comments