Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions jquery.row-grid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
(function($){
/*!
* rowGrid.js
*
* Author: Bruno Joseph
* https://github.com/brunjo
* Licensed under the MIT license.
*/
; (function (factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(["jquery"], factory);
} else if (typeof exports === "object") {
// Node/CommonJS
module.exports = factory(require("jquery"));
} else {
// No AMD. Register plugin with global jQuery object.
factory(jQuery);
}
})(function ($) {
$.fn.rowGrid = function( options ) {
return this.each(function() {
var $this = $(this);
Expand Down Expand Up @@ -137,4 +155,4 @@
}
}
}
})(jQuery);
});
6 changes: 1 addition & 5 deletions jquery.row-grid.min.js

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
"homepage": "https://github.com/brunjo/rowGrid.js",
"dependencies" : {
"jquery": ">=1.7.0"
},
"scripts":{
"compress" : "uglifyjs jquery.row-grid.js -o jquery.row-grid.min.js"
}
}