adamwulf/Columnizer-jQuery-Plugin — Issue #34: Removeiffirst/removeiflast implementation wrong
Author: chrisgraham
Created: 2012-01-20 12:52:40+00:00
State: open

It assumes you only have 1 of them. But if you have a sequence, it won't work.

I have adapted the code to remove as many as there are.

```
while ($inBox.children(".column").children(":first-child.removeiffirst").length!=0)
$inBox.children(".column").children(":first-child.removeiffirst").remove();
while ($inBox.children(".column").children(":last-child.removeiflast").length!=0)
$inBox.children(".column").children(":last-child.removeiflast").remove();
```