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