Skip to content

Commit 767d37c

Browse files
author
ferris
committed
Updated example for Fuse 0.24
1 parent b2db93b commit 767d37c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Pages/EditHikePage.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
var Observable = require("FuseJS/Observable");
22
var Context = require("Modules/Context");
33

4-
var hike = Observable();
4+
var hike = this.Parameter;
55

66
var name = hike.map(function(x) { return x.name; });
77
var location = hike.map(function(x) { return x.location; });
88
var distance = hike.map(function(x) { return x.distance; });
99
var rating = hike.map(function(x) { return x.rating; });
1010
var comments = hike.map(function(x) { return x.comments; });
1111

12-
this.onParameterChanged(function(param) {
13-
hike.value = param;
14-
});
15-
1612
function cancel() {
1713
// Refresh hike value to reset dependent Observables' values
1814
hike.value = hike.value;

0 commit comments

Comments
 (0)