juanbrujo / jQuery-Timelinr

Dando vida al tiempo / Giving life to time
261 stars 106 forks source link

Adds a check to see if required elements datesDiv and issuesDiv exist. #13

Closed kevindb closed 8 years ago

kevindb commented 9 years ago

If Timelinr is included on a page that does not intend to use the library (for example, the lib is concatenated into a minified site-wide JS file), it throws an error when trying to calculate the defaultPositionDates from the sizes of non extant DOM elements. This resolves #12.