lib/assets/javascripts/jquery.masonry.min.js
File jquery.masonry.min.js
has 296 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jQuery Masonry v2.1.03
* A dynamic layout plugin for jQuery
* The flip-side of CSS Floats
* http://masonry.desandro.com
Function _placeBrick
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_placeBrick: function( brick ) {
var $brick = $(brick),
colSpan, groupCount, groupY, groupColY, j;
//how many columns does this brick span
Function layout
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
layout : function( $bricks, callback ) {
// place each brick
for (var i=0, len = $bricks.length; i < len; i++) {
this._placeBrick( $bricks[i] );
Function _create
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create : function( options ) {
this.options = $.extend( true, {}, $.Mason.settings, options );
this.styleQueue = [];
Function imagesLoaded
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.imagesLoaded = function( callback ) {
var $this = this,
$images = $this.find('img').add( $this.filter('img') ),
len = $images.length,
blank = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==',
Function masonry
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.masonry = function( options ) {
if ( typeof options === 'string' ) {
// call method
var args = Array.prototype.slice.call( arguments, 1 );