balderdashy / mast

UI conventions built on top of Backbone.JS
MIT License
81 stars 14 forks source link

Global app object #100

Open mikermcneil opened 11 years ago

mikermcneil commented 11 years ago

Technically, the quickest way is to make Framework.components.Body always exist, using the definition if one was provided (otherwise using an empty definition). Set it's template to be the <body> tag. Now all regions are inside a template.

Framework.define('Body', function () {
  return {
    /* 'Body' always refers to the <body> tag instead of a true template */
  };
});