examples/link.rb in scarpe-0.2.1 vs examples/link.rb in scarpe-0.2.2

- old
+ new

@@ -1,19 +1,19 @@ Shoes.app do def collapsed @para = para( "'Scarpe' means shoes in Italian. 'Scarpe' also means Shoes in...", - link("(show more)") { @para.destroy_self; @para = expanded } + link("(show more)") { @para.destroy; @para = expanded } ) end def expanded @para = para( "'Scarpe' means shoes in Italian. 'Scarpe' also means Shoes in modern Ruby and webview!</br>", "Scarpe isn't feature complete with any version of Shoes (yet?). We're initially targeting Shoes Classic. ", link("Learn more", click: "http://github.com/schwad/scarpe"), " ", - link("(show less)") { @para.destroy_self; @para = collapsed } + link("(show less)") { @para.destroy; @para = collapsed } ) end @para = collapsed end