Sha256: 68cbe16623c0f16450bd242c2be22547ce7e285c888a251dcdf71d888ce3bfad

Contents?: true

Size: 1.66 KB

Versions: 7

Compression:

Stored size: 1.66 KB

Contents

/*globals _, sitemap, pageflow */

sitemap.AbstractController = pageflow.Object.extend({
  lineSelected: function (line, event) {},

  storylineSelected: function (storyline, event) {},

  storylinesSelected: function (storylines) {},

  chapterSelected: function (chapter, event) {},

  pageSelected: function (page, event) {},

  pageDblClick: function (page, event) {},

  pageLinkSelected: function (pageLink) {},

  pageLinkDroppedOnPage: function(links, link, page) {},

  newPageLinkDroppedOnPage: function(links, page) {},

  pageLinkDroppedOnPlaceholder: function(sourcePage, links, link, laneAndRow) {},

  newPageLinkDroppedOnPlaceholder: function(sourcePage, links, laneAndRow) {},

  successorLinkSelected: function (link) {},

  successorLinkDroppedOnPage: function(page, targetPage) {},

  successorLinkDroppedOnPlaceholder: function(page, laneAndRow) {},

  storylinesPositioned: function(updates) {},

  pagesMoved: function(pagesGroupedByChapters) {},

  addPage: function (chapter) {},

  insertPageAfter: function (page) {},

  addChapter: function(storyline, configuration) {},

  insertChapterAfter: function(targetChapter) {},

  chaptersMoved: function(chaptersGroupedByStorylines) {},

  addStoryline: function(configuration) {},

  addUpdateHandler: function (handler) {
    var timeout;

    this.addDebouncedUpdateHandler(function(/* args */) {
      var args = arguments;

      timeout = timeout || setTimeout(function() {
        timeout = null;
        handler.apply(this, args);
      }, 1);
    });
  },

  addDebouncedUpdateHandler: function(handler) {},

  dispose: function() {
    this.stopListening();
  }
});

_.extend(sitemap.AbstractController, Backbone.Events);

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pageflow-sitemap-1.5.0 app/assets/javascripts/pageflow/sitemap/editor/controllers/abstract_controller.js
pageflow-sitemap-1.4.0 app/assets/javascripts/pageflow/sitemap/editor/controllers/abstract_controller.js
pageflow-sitemap-1.3.0 app/assets/javascripts/pageflow/sitemap/editor/controllers/abstract_controller.js
pageflow-sitemap-1.2.0 app/assets/javascripts/pageflow/sitemap/editor/controllers/abstract_controller.js
pageflow-sitemap-1.1.0 app/assets/javascripts/pageflow/sitemap/editor/controllers/abstract_controller.js
pageflow-sitemap-1.0.0 app/assets/javascripts/pageflow/sitemap/editor/controllers/abstract_controller.js
pageflow-sitemap-0.1.0 app/assets/javascripts/pageflow/sitemap/editor/controllers/abstract_controller.js