Pablo

pop()

Removes the last element in the collection and returns it, wrapped in a new collection.

var svg = Pablo(demoElement).svg({height:100}),
    collection = Pablo(['circle', 'line', 'rect']);

// Removes and returns the last element, the <rect>
collection.pop()
    .attr({width:100, height:100})
    .appendTo(svg);

alert(collection.length); // 2
Painting is just another way of keeping a diary.
Pablo Picasso