diff --git a/examples/js/require-js.js b/examples/js/require-js.js index 7c5c899..591e974 100644 --- a/examples/js/require-js.js +++ b/examples/js/require-js.js @@ -16,22 +16,19 @@ requirejs( [ '../js/isotope', '../js/layout-modes/masonry' ], function( Isotope // */ // isotope.pkgd.js -/* -requirejs( [ 'require', 'js/isotope.pkgd.js' ], - function( require, Isotope ) { - require( [ 'isotope/js/layout-modes/fit-rows' ], function() { - new Isotope( '#basic', { - layoutMode: 'fitRows', - masonry: { - columnWidth: 60 - } - }); - }); - } -); +// /* +requirejs( [ 'js/isotope.pkgd.js' ], function( Isotope ) { + new Isotope( '#basic', { + layoutMode: 'masonry', + masonry: { + columnWidth: 60 + } + }); +}); // */ // isotope.pkgd.js and jQuery +/* requirejs.config({ paths: { jquery: '../../bower_components/jquery/jquery' @@ -42,7 +39,6 @@ requirejs( [ 'require', 'jquery', 'js/isotope.pkgd.js' ], function( require, $, Isotope ) { require( [ 'jquery-bridget/jquery.bridget', - 'isotope/js/layout-modes/masonry' ], function() { $.bridget( 'isotope', Isotope ); @@ -54,3 +50,5 @@ requirejs( [ 'require', 'jquery', 'js/isotope.pkgd.js' ], } ); }); + +// */ diff --git a/js/isotope.js b/js/isotope.js index 43d3ada..32b67ca 100644 --- a/js/isotope.js +++ b/js/isotope.js @@ -585,7 +585,11 @@ if ( typeof define === 'function' && define.amd ) { 'get-size/get-size', 'matches-selector/matches-selector', './item', - './layout-mode' + './layout-mode', + // include default layout modes + './layout-modes/masonry', + './layout-modes/fit-rows', + './layout-modes/vertical' ], isotopeDefinition ); } else {