implement
MooTools: takeOut and putBack methods
Sometimes you don’t want to replace an element with another one, you just want a placeholder, so you can put it back later. I wrote takeOut and putBack to help out with that. Element.implement({ takeOut: function(elementType) { var elementType = ($type(elementType) == "string" ? elementType: "span"); this.placeholder = ($defined(this.placeholder) ? this.placeholder : new Element(elementType).setStyle("display", "none").addClass("takenOut_"+this.get("id"))); [...]