Sha256: 1ab1ad9c0747859e644cb640bd38c639a8498bf63c59800364e978441c9361d6
Contents?: true
Size: 1.83 KB
Versions: 45
Compression:
Stored size: 1.83 KB
Contents
pageflow.app.addInitializer(function(options) { pageflow.files = pageflow.FilesCollection.createForFileTypes(pageflow.editor.fileTypes, options.files); pageflow.imageFiles = pageflow.files.image_files; pageflow.videoFiles = pageflow.files.video_files; pageflow.audioFiles = pageflow.files.audio_files; pageflow.textTrackFiles = pageflow.files.text_track_files; var widgets = new pageflow.WidgetsCollection(options.widgets, { widgetTypes: pageflow.editor.widgetTypes }); pageflow.themes = new pageflow.ThemesCollection(options.themes); pageflow.pages = new pageflow.PagesCollection(options.pages); pageflow.chapters = new pageflow.ChaptersCollection(options.chapters); pageflow.storylines = new pageflow.StorylinesCollection(options.storylines); pageflow.entry = new pageflow.Entry(options.entry, {widgets: widgets}); pageflow.theming = new pageflow.Theming(options.theming); pageflow.account = new Backbone.Model(options.account); widgets.subject = pageflow.entry; pageflow.entryData = new pageflow.PreviewEntryData({ entry: pageflow.entry, storylines: pageflow.storylines, chapters: pageflow.chapters, pages: pageflow.pages }); pageflow.storylineOrdering = new pageflow.StorylineOrdering(pageflow.storylines, pageflow.pages); pageflow.storylineOrdering.sort({silent: true}); pageflow.storylineOrdering.watch(); pageflow.pages.sort(); pageflow.storylines.on('sort', _.debounce(function() { pageflow.storylines.saveOrder(); }, 100)); pageflow.editor.failures.watch(pageflow.entry); pageflow.editor.failures.watch(pageflow.pages); pageflow.editor.failures.watch(pageflow.chapters); pageflow.savingRecords = new pageflow.SavingRecordsCollection(); pageflow.savingRecords.watch(pageflow.pages); pageflow.savingRecords.watch(pageflow.chapters); pageflow.events.trigger('seed:loaded'); });
Version data entries
45 entries across 45 versions & 1 rubygems