livestampjs icon indicating copy to clipboard operation
livestampjs copied to clipboard

List of livestamps contains duplicates

Open lostincomputer opened this issue 10 years ago • 2 comments

Element is added to the $livestamps variable twice when I initialize livestamp twice

Code to reproduce the problem: $('#birth').livestamp(new Date('June 18, 1987')); $('#birth').livestamp(new Date('Febuary 18, 1987')); //change the date

$livestamps variable now contains the #birth element twice

lostincomputer avatar Jan 22 '15 23:01 lostincomputer

@mattbradley this one is also important for memory

philfreo avatar Apr 15 '15 02:04 philfreo

Another good find. This would be fixed by #11, but that pull isn't mergeable anymore. I'll fix this in v2.0.

mattbradley avatar Apr 24 '15 13:04 mattbradley