Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 627: | Rivi 627: | ||
memo.obsesA.push( obs ); | memo.obsesA.push( obs ); | ||
if ( typeof obs.data.depthR != 'undefined' ) { | if ( typeof obs.data.depthR != 'undefined' ) { | ||
if ( typeof memo.depthsO[ obs.data.depthR ] == 'undefined' ) { memo.depthsO[ obs.data.depthR ] = {}; } | |||
if ( typeof obs.data.depthAval != 'undefined' ) { | if ( typeof obs.data.depthAval != 'undefined' ) { | ||
memo.depthsO[ obs.data.depthR ] | memo.depthsO[ obs.data.depthR ][ obs.data.depthAval ] = true; | ||
} else { | } else { | ||
memo.depthsO[ obs.data.depthR ] | memo.depthsO[ obs.data.depthR ][ -1 ] = true; | ||
} | } | ||
} | } | ||
} | } | ||
console.log( memo.depthsO ); | console.log( memo.depthsO ); | ||
// sort | // sort | ||
memo.obsesA.sort( function(a, b) { return a.obsdatetime - b.obsdatetime; }); | memo.obsesA.sort( function(a, b) { return a.obsdatetime - b.obsdatetime; }); | ||


