From b9129fb43e0802ba7ded26b6d72f0d477a657a3d Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Mon, 19 Jan 2015 20:19:12 -0800 Subject: [PATCH] update gridstack.js --- gridstack.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/gridstack.js b/gridstack.js index 43297d1..bfce4c5 100644 --- a/gridstack.js +++ b/gridstack.js @@ -1,4 +1,18 @@ -(function (scope, _) { +// gridstack.js 0.2.3-dev +// http://troolee.github.io/gridstack.js/ +// (c) 2014-2015 Pavel Reznikov +// gridstack.js may be freely distributed under the MIT license. + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['jquery', 'underscore'], factory); + } + else { + factory(jQuery, _); + } +})(function ($, _) { + + var scope = window; var Utils = { is_intercepted: function (a, b) { @@ -712,4 +726,5 @@ }); }; -})(window, _); + return scope.GridStackUI; +});