Binding Javascript Method References To Their Parent Classes