Sha256: 961fb80f016e00c1b5fc9e6957b62ac77eb9d263905f353bec83cc4f0bfee0cc

Contents?: true

Size: 515 Bytes

Versions: 13

Compression:

Stored size: 515 Bytes

Contents

pageflow.linkmapPage.ColorMapDelegator = pageflow.Object.extend({
  initialize: function() {
    this._colorMap = pageflow.linkmapPage.ColorMap.empty;
  },

  updateDelegate: function(colorMap) {
    this._colorMap = colorMap;
    this.trigger('update');
  }
});

_(['components', 'componentFromPoint', 'componentByPermaId', 'previewUrl']).each(function(method) {
  pageflow.linkmapPage.ColorMapDelegator.prototype[method] = function() {
    return this._colorMap[method].apply(this._colorMap, arguments);
  };
});

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pageflow-linkmap-page-2.10.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.9.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.8.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.7.1 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.7.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.6.1 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.6.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.5.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.4.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.3.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.2.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.1.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js
pageflow-linkmap-page-2.0.0 app/assets/javascript/pageflow/linkmap_page/editor/models/color_map_delegator.js