desandro/isotope — pull request #139 by lfjallstrom (2012-01-27 09:53:01+00:00)
Title: Fixed incorrect state of $allAtoms while removing items

Noticed that $allAtoms can end up into wrong state when adding and removing items simultaneously and Isotope will get unstable. See the attached html file used for demonstration. Just click the button three times and see the results.

The problems go away when $allAtoms is updated in the remove function itself, not in the removeContent callback function.

***

Add and remove items · Isotope Demo

Isotope

Docs

Introduction

Options

Methods

Layout modes

Filtering

Sorting

Animating

Adding items

Extending Isotope

Hash history with jQuery BBQ

Help

License

Demos

Basic

Elements Complete

Elements Partial

Layout modes

Filtering

Sorting

reLayout

Adding items

Infinite Scroll

Images

Combination filters

Hash history

Fluid / responsive

Removing

Custom layout modes

Centered Masonry

Category rows

Masonry corner stamp

Masonry gutters

Spine align

BIG Graph

Tests

Add and remove items

Add and remove elements

80

Hg

Mercury

200.59

52

Te

Tellurium

127.6

83

Bi

Bismuth

208.9804

48

Cd

Cadmium

112.411

20

Ca

Calcium

40.078

75

Re

Rhenium

186.207

81

Tl

Thallium

204.3833

51

Sb

Antimony

121.76

27

Co

Cobalt

58.933195

71

Lu

Lutetium

174.9668

18

Ar

Argon

39.948

37

Rb

Rubidium

85.4678

7

N

Nitrogen

14.0067

93

Np

Neptunium

(237)

89

Ac

Actinium

(227)

Isotope by David DeSandro / Metafizzy