From bb5228e597893688f0dd34a32e1e9730edf9b236 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Sun, 4 Nov 2018 13:28:17 +0000 Subject: [PATCH] added motion detection --- src/service-worker.js | 2 +- src/v1/js/Location.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service-worker.js b/src/service-worker.js index ef258c1..9336b46 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -11,7 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -const CACHE_VERSION = { 'version': '0.0.972' }; +const CACHE_VERSION = { 'version': '0.0.973' }; const PRECACHE = `jubileeData-${CACHE_VERSION.version}`; const RUNTIME = 'runtime'; diff --git a/src/v1/js/Location.js b/src/v1/js/Location.js index 3e4b22e..14e676f 100644 --- a/src/v1/js/Location.js +++ b/src/v1/js/Location.js @@ -59,7 +59,8 @@ const LocationModel = Backbone.Model.extend({ const now = new Date(); console.log(now); - }; + console.log(this); + }.bind(this); const updatelocationthrottled = _.throttle(updateLocation, 10000);