Changed OffCanvas to use prototypical method definitions