vendor/assets/javascripts/uikit/core/grid.js in uikit2-rails-0.1.9 vs vendor/assets/javascripts/uikit/core/grid.js in uikit2-rails-0.1.10

- old
+ new

@@ -1,31 +1,31 @@ -/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(UI) { "use strict"; var grids = []; UI.component('gridMatchHeight', { defaults: { - "target" : false, - "row" : true, - "ignorestacked" : false, - "observe" : false + target : false, + row : true, + ignorestacked : false, + observe : false }, boot: function() { // init code UI.ready(function(context) { - UI.$("[data-uk-grid-match]", context).each(function() { + UI.$('[data-uk-grid-match]', context).each(function() { var grid = UI.$(this), obj; - if (!grid.data("gridMatchHeight")) { - obj = UI.gridMatchHeight(grid, UI.Utils.options(grid.attr("data-uk-grid-match"))); + if (!grid.data('gridMatchHeight')) { + obj = UI.gridMatchHeight(grid, UI.Utils.options(grid.attr('data-uk-grid-match'))); } }); }); }, @@ -39,35 +39,35 @@ if (!this.columns.length) return; UI.$win.on('load resize orientationchange', (function() { var fn = function() { - if ($this.element.is(":visible")) $this.match(); + if ($this.element.is(':visible')) $this.match(); }; UI.$(function() { fn(); }); return UI.Utils.debounce(fn, 50); })()); if (this.options.observe) { UI.domObserve(this.element, function(e) { - if ($this.element.is(":visible")) $this.match(); + if ($this.element.is(':visible')) $this.match(); }); } - this.on("display.uk.check", function(e) { - if(this.element.is(":visible")) this.match(); + this.on('display.uk.check', function(e) { + if(this.element.is(':visible')) this.match(); }.bind(this)); grids.push(this); }, match: function() { - var firstvisible = this.columns.filter(":visible:first"); + var firstvisible = this.columns.filter(':visible:first'); if (!firstvisible.length) return; var stacked = Math.ceil(100 * parseFloat(firstvisible.css('width')) / parseFloat(firstvisible.parent().css('width'))) >= 100; @@ -96,14 +96,14 @@ boot: function() { // init code UI.ready(function(context) { - UI.$("[data-uk-grid-margin]", context).each(function() { + UI.$('[data-uk-grid-margin]', context).each(function() { var grid = UI.$(this), obj; - if (!grid.data("gridMargin")) { - obj = UI.gridMargin(grid, UI.Utils.options(grid.attr("data-uk-grid-margin"))); + if (!grid.data('gridMargin')) { + obj = UI.gridMargin(grid, UI.Utils.options(grid.attr('data-uk-grid-margin'))); } }); }); },