[Pkg-javascript-commits] [jquery-minicolors] 09/18: Fixes #138 and #139

David Prévot taffit at moszumanska.debian.org
Fri Apr 10 02:18:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository jquery-minicolors.

commit a6fa980b94966aecb23f4c1c32f8a894ceae8370
Author: Cory LaViska <cory at abeautifulsite.net>
Date:   Wed Apr 8 17:53:48 2015 -0400

    Fixes #138 and #139
---
 jquery.minicolors.js     | 21 +++++++++++++++++----
 jquery.minicolors.min.js |  6 +++---
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/jquery.minicolors.js b/jquery.minicolors.js
index e113e3b..c37707c 100644
--- a/jquery.minicolors.js
+++ b/jquery.minicolors.js
@@ -1,14 +1,27 @@
 /*
  * jQuery MiniColors: A tiny color picker built on jQuery
  *
- * Copyright: Cory LaViska for A Beautiful Site, LLC
+ * Copyright: Cory LaViska for A Beautiful Site, LLC: http://www.abeautifulsite.net/
  *
- * Contributions and bug reports: https://github.com/claviska/jquery-minicolors
+ * Contribute: https://github.com/claviska/jquery-minicolors
  *
  * @license: http://opensource.org/licenses/MIT
  *
  */
-if(jQuery) (function($) {
+(function (factory) {
+    /* jshint ignore:start */
+    if (typeof define === 'function' && define.amd) {
+        // AMD. Register as an anonymous module.
+        define(['jquery'], factory);
+    } else if (typeof exports === 'object') {
+        // Node/CommonJS
+        module.exports = factory(require('jquery'));
+    } else {
+        // Browser globals
+        factory(jQuery);
+    }
+    /* jshint ignore:end */
+}(function ($) {
 
     // Defaults
     $.minicolors = {
@@ -845,4 +858,4 @@ if(jQuery) (function($) {
             }, 1);
         });
 
-})(jQuery);
\ No newline at end of file
+}));
\ No newline at end of file
diff --git a/jquery.minicolors.min.js b/jquery.minicolors.min.js
index 938d85e..12480ab 100644
--- a/jquery.minicolors.min.js
+++ b/jquery.minicolors.min.js
@@ -1,11 +1,11 @@
 /*
  * jQuery MiniColors: A tiny color picker built on jQuery
  *
- * Copyright: Cory LaViska for A Beautiful Site, LLC
+ * Copyright: Cory LaViska for A Beautiful Site, LLC: http://www.abeautifulsite.net/
  *
- * Contributions and bug reports: https://github.com/claviska/jquery-minicolors
+ * Contribute: https://github.com/claviska/jquery-minicolors
  *
  * @license: http://opensource.org/licenses/MIT
  *
  */
-jQuery&&function($){function i(i,t){var o=$('<div class="minicolors" />'),n=$.minicolors.defaults;i.data("minicolors-initialized")||(t=$.extend(!0,{},n,t),o.addClass("minicolors-theme-"+t.theme).toggleClass("minicolors-with-opacity",t.opacity).toggleClass("minicolors-no-data-uris",t.dataUris!==!0),void 0!==t.position&&$.each(t.position.split(" "),function(){o.addClass("minicolors-position-"+this)}),i.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings [...]
\ No newline at end of file
+!function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function($){function i(i,t){var o=$('<div class="minicolors" />'),n=$.minicolors.defaults;i.data("minicolors-initialized")||(t=$.extend(!0,{},n,t),o.addClass("minicolors-theme-"+t.theme).toggleClass("minicolors-with-opacity",t.opacity).toggleClass("minicolors-no-data-uris",t.dataUris!==!0),void 0!==t.position&&$.each(t.position.split(" "),functio [...]
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery-minicolors.git



More information about the Pkg-javascript-commits mailing list