Sha256: 3303680bdead630fc5a3af5f7ef48feb44e21d06662f7ecc39567777f8853578
Contents?: true
Size: 1.1 KB
Versions: 18
Compression:
Stored size: 1.1 KB
Contents
//= require_self //= require_tree ./page_types/mixins //= require_tree ./page_types pageflow.pageType = (function() { var base = { enhance: function(pageElement, configuarion) {}, prepare: function(pageElement, configuarion) {}, preload: function(pageElement, configuarion) {}, resize: function(pageElement, configuarion) {}, activating: function(pageElement, configuarion) {}, activated: function(pageElement, configuarion) {}, deactivating: function(pageElement, configuarion) {}, deactivated: function(pageElement, configuarion) {}, update: function(pageElement, configuarion) {}, embeddedEditorViews: function() {}, prepareNextPageTimeout: 200 }; return { repository: [], register: function(name, pageType) { var constructor = function() {}; _.extend(constructor.prototype, base, Backbone.Events, pageType); this.repository[name] = constructor; }, get: function(name) { if (!this.repository.hasOwnProperty(name)) { throw 'Unknown page type "' + name + '"'; } return new this.repository[name](); } }; }());
Version data entries
18 entries across 18 versions & 1 rubygems