Sha256: cdf1a11ecfc9fd39871581550b7f6d0a16d778dfe1aecaa7b9a037958ab2ae61

Contents?: true

Size: 481 Bytes

Versions: 10

Compression:

Stored size: 481 Bytes

Contents

OML = {
  data_sources: {},
  widgets: {},
  window_size: {width: null, height: null}
};

var OHUB = {};
_.extend(OHUB, Backbone.Events);

$(window).resize(function(x) {
  var w = $(window);
  var width = w.width();
  var height = w.height();
  var current = OML.window_size;

  if (current.width != width || current.height != height) {
    current.width = width; current.height = height;
    OHUB.trigger('window.resize', current);
    OHUB.trigger('layout.resize', {});
  }
});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
omf_web-1.2.9 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.8 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.7 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.6 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.5 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.4 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.3 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.2 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.1 share/htdocs/theme/abstract/abstract.js
omf_web-1.2.0 share/htdocs/theme/abstract/abstract.js