You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapter-8/Pages/EditHikePage.js
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,34 @@
1
1
varContext=require("Modules/Context");
2
2
3
-
varhike=this.Parameter;
3
+
varhike=this.Parameter.map(function(x){console.log("Fetching id "+x+", length: "+Context.hikes.length);returnContext.hikes.getAt(x)});//TODO bug is that this isnt returning an observable?
4
4
5
+
/*
5
6
var name = hike.map(function(x) { return x.name; });
6
7
var location = hike.map(function(x) { return x.location; });
7
8
var distance = hike.map(function(x) { return x.distance; });
8
9
var rating = hike.map(function(x) { return x.rating; });
9
10
var comments = hike.map(function(x) { return x.comments; });
10
-
11
+
*/
11
12
functioncancel(){
12
13
// Refresh hike value to reset dependent Observables' values
0 commit comments