Skip to content

Commit

Permalink
js : strict mode; v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Oct 7, 2012
1 parent f647cd9 commit c119e6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions masonry.js
@@ -1,16 +1,18 @@
/** /**
* Vanilla Masonry v1.0.04 * Vanilla Masonry v1.0.5
* Dynamic layouts for the flip-side of CSS Floats * Dynamic layouts for the flip-side of CSS Floats
* http://vanilla-masonry.desandro.com * http://vanilla-masonry.desandro.com
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* Copyright 2012 David DeSandro * Copyright 2012 David DeSandro
*/ */


/*jshint forin: false, undef: true, eqeqeq: true, curly: true, browser: true */ /*jshint forin: false, undef: true, eqeqeq: true, curly: true, browser: true, strict: true */


(function( window, undefined ) { (function( window, undefined ) {


'use strict';

var document = window.document; var document = window.document;


// -------------------------- DOM Utility -------------------------- // // -------------------------- DOM Utility -------------------------- //
Expand Down Expand Up @@ -133,7 +135,7 @@


// Fall back to computed then uncomputed css if necessary // Fall back to computed then uncomputed css if necessary
val = computedStyle[ measure ]; val = computedStyle[ measure ];
if ( val < 0 || val == null ) { if ( val < 0 || val === null ) {
val = elem.style[ measure ] || 0; val = elem.style[ measure ] || 0;
} }
// Normalize "", auto, and prepare for extra // Normalize "", auto, and prepare for extra
Expand Down
4 changes: 2 additions & 2 deletions masonry.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c119e6f

Please sign in to comment.