clientside/amplesdk — Issue #103: insertAfter() and after() throw exception
Author: tedbeer
Created: 2011-11-03 12:23:10+00:00
State: open

test fragment (you can run it in the sandbox):

`

aaa
bbb

`

the following code should leave nodes at the same place but it throws exception:

```var items = ample.query('ul')[0].childNodes;
ample.query(items[1]).insertAfter(items[0])```

using **after** also fails:

```var items = ample.query('ul')[0].childNodes;
ample.query(items[0]).after(items[1])```

Similar code using **before()/insertBefore()** works correctly.