From 1620d3e5cd62f6bac59be36505d2cd33e3e860b0 Mon Sep 17 00:00:00 2001 From: Adam Ever-Hadani Date: Wed, 8 Jan 2014 15:56:13 -0800 Subject: [PATCH] formatting --- source/js/VMM.Timeline.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/js/VMM.Timeline.js b/source/js/VMM.Timeline.js index 383c8df..6a47f6b 100755 --- a/source/js/VMM.Timeline.js +++ b/source/js/VMM.Timeline.js @@ -67,7 +67,7 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { preload: 4, current_slide: 0, hash_bookmark: false, - use_hashbang: false, + use_hashbang: false, start_at_end: false, start_at_slide: 0, start_zoom_adjust: 0, @@ -160,11 +160,11 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { } window.onhashchange = function () { - var hash = (config.use_hashbang) + var hash = (config.use_hashbang) ? window.location.hash.substring(2) : window.location.hash.substring(1); - if (config.hash_bookmark) { + if (config.hash_bookmark) { if (is_moving) { goToEvent(parseInt(hash)); } else { @@ -695,3 +695,4 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { VMM.Timeline.Config = {}; }; +