Selectors:
>(descendant)[attr](attribute).class1.class2(multiple classes)~(sibling)
| require 'better_wrapper' | |
| BetterWrapper.wrap do | |
| raise "Did it work?" | |
| end |
| movieDb.Router = Backbone.Router.extend({ | |
| routes:{ | |
| '': 'landPage', | |
| 'home': 'landPage', | |
| 'login': 'login', | |
| 'signup': 'signup' | |
| }, | |
| landPage: function(p){ | |
| $('div#homepage').empty(); |
| <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7/jquery.min.js'></script> | |
| <div class="from"> | |
| <label>Type here:</label> | |
| <textarea>Hello :trollface:</textarea> | |
| </div> | |
| <div class="to"> | |
| <label>Use this:</label> | |
| <textarea></textarea> | |
| </div> | |
| <div class="preview"> |
| def pcall(object, meth, &blk) | |
| begin | |
| object.send meth | |
| rescue | |
| return if exception.nil? | |
| raise blk.call | |
| end | |
| end | |