Skip to content

Commit

Permalink
Adding a clear and a replay method so we can replay the development h…
Browse files Browse the repository at this point in the history
…istory.
  • Loading branch information
cthulhuology committed May 26, 2012
1 parent f3e648e commit a2074ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bohemian.js
Expand Up @@ -142,6 +142,14 @@ _('method','does',function() {
},
'strikeout', function() {
return this.css({ textDecoration: 'line-through' })
},
'clear', function() {
while(document.body.firstChild()) document.body.removeChild(document.body.firstChild())
return this._
},
'replay', funciton() {
map( function(x) { this.apply(this,x) }, this.history )
return this._
})
('every','tag',[
'div','span','br',
Expand Down

0 comments on commit a2074ed

Please sign in to comment.