Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble instantiating multiple instances of timeline widget #40

Open
framejk opened this issue Mar 8, 2012 · 2 comments
Open

Trouble instantiating multiple instances of timeline widget #40

framejk opened this issue Mar 8, 2012 · 2 comments

Comments

@framejk
Copy link

framejk commented Mar 8, 2012

Trying to have multiple timeline widgets loaded into a single page. The last timeload will load properly, but any before will not properly load and render. Firebug shows error: TG_TimelineView.js (line 1392)

this.getTickSeconds[tickUnit] is not a function
pack.seconds = this.getTickSecondstickUnit;

var tg1 = $("#60s").timeline({
"min_zoom":37,
"max_zoom":37,
"show_centerline":true,
"data_source":"timeglider/json_tests/js_history.json",
"show_footer":false,
"display_zoom_level": false,
"constrain_to_data": true,
'icon_folder': 'timeglider/js/timeglider/icons/',
"event_overflow":'hide'
});
var tg2 = $("#70s").timeline({
"min_zoom":37,
"max_zoom":37,
"show_centerline":true,
"data_source":"timeglider/json_tests/idaho.json",
"show_footer":false,
"display_zoom_level": false,
"constrain_to_data": true,
'icon_folder': 'timeglider/js/timeglider/icons/',
"event_overflow":'hide'
});

@timeglider
Copy link
Owner

Unfortunately, there are some fundamental issues
in the architecture that foobar multiple instances.
Different errors will come up on different browsers,
also depending on load times, because there are
variables being stored in some closures that are
shared across all instances of timeglider which should
not be shared...

I've got a basic plan for fixing this, but am not planning
to resolve this for a few months at least.

----- Michael

On Thu, Mar 8, 2012 at 10:52 AM, framejk <
reply@reply.github.com

wrote:

Trying to have multiple timeline widgets loaded into a single page. The
last timeload will load properly, but any before will not properly load and
render. Firebug shows error: TG_TimelineView.js (line 1392)

this.getTickSeconds[tickUnit] is not a function
pack.seconds = this.getTickSecondstickUnit;

var tg1 = $("#60s").timeline({
"min_zoom":37,
"max_zoom":37,
"show_centerline":true,
"data_source":"timeglider/json_tests/js_history.json",
"show_footer":false,
"display_zoom_level": false,
"constrain_to_data": true,
'icon_folder': 'timeglider/js/timeglider/icons/',
"event_overflow":'hide'
});
var tg2 = $("#70s").timeline({
"min_zoom":37,
"max_zoom":37,
"show_centerline":true,
"data_source":"timeglider/json_tests/idaho.json",
"show_footer":false,
"display_zoom_level": false,
"constrain_to_data": true,
'icon_folder': 'timeglider/js/timeglider/icons/',
"event_overflow":'hide'
});


Reply to this email directly or view it on GitHub:
#40

@framejk
Copy link
Author

framejk commented Mar 8, 2012

Thanks for the quick response. Love the plugin and see great potential for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants