Duh!
It's so simple if you know what you are doing!
The code should be changed to the following:
document.observe("dom:loaded", function() {
$$('.some-class').each(function(e) {
e.insert({top: new Element('div').addClassName('top')}).insert({bottom: new Element('div').addClassName('bottom')});
});
});
That actually makes sense. I'm happy now :)
Dave Haefliger
2010-09-27 13:34:34