Sha256: b668b528cf5226dfdf21162fbfc7f4f36e25a7e55c809fb416e842f755bb0cb6

Contents?: true

Size: 245 Bytes

Versions: 18

Compression:

Stored size: 245 Bytes

Contents

pageflow.app.addInitializer(function(options) {
  pageflow.Page.types = options.page_types;

  pageflow.Page.typesByName = _.reduce(options.page_types, function(memo, pageType) {
    memo[pageType.name] = pageType;
    return memo;
  }, {});
});

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
pageflow-0.8.2 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.8.1 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.8.0 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.7.2 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.7.1 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.7.0 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.6.0 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.5.0 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.4.0 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.3.0 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.2.1 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.2.0 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.1.0 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.0.5 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.0.4 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.0.3 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.0.2 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js
pageflow-0.0.1 app/assets/javascripts/pageflow/editor/initializers/setup_page_types.js