From 5429f7f746461c15fb07873e450b02de2967bf3e Mon Sep 17 00:00:00 2001 From: Aleksandar Totic Date: Thu, 7 Mar 2013 11:40:09 -0800 Subject: [PATCH 1/2] Update gradients.js Bug: hook did not work on multiple gradients. Why: "".replace(str, ) only replaces first occurence Fix: Use regex as an argument to "".replace This fixed multiple gradients for me. --- gradients.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradients.js b/gradients.js index 655f14b..f553434 100755 --- a/gradients.js +++ b/gradients.js @@ -33,12 +33,12 @@ divStyle.cssText = cssLinear, linearSettings = function ( value ) { var parts = rLinearSettings.exec( value ); - value = value.replace( parts[2] , $.support.linearGradient ); + value = value.replace( new RegExp(parts[2], 'g') , $.support.linearGradient ); return value; }, radialSettings = function ( value ) { var parts = rRadialSettings.exec( value ); - value = value.replace( parts[2] , $.support.radialGradient ); + value = value.replace( new RegExp(parts[2], 'g') , $.support.radialGradient ); return value; }; @@ -81,4 +81,4 @@ } div = divStyle = null; -})(jQuery); \ No newline at end of file +})(jQuery); From 6430e7a76ca86872857ffe84befb9238620a943a Mon Sep 17 00:00:00 2001 From: Tom Ellis Date: Thu, 17 Oct 2013 08:23:45 +0100 Subject: [PATCH 2/2] Update and rename README.markdown to README.md --- README.markdown => README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename README.markdown => README.md (96%) diff --git a/README.markdown b/README.md similarity index 96% rename from README.markdown rename to README.md index 04d0993..897af00 100644 --- a/README.markdown +++ b/README.md @@ -45,4 +45,4 @@ jQuery 1.4.3 introduced the concept of cssHooks. They allow you to hook directly The cssHooks plugin is licensed under the MIT License (LICENSE.txt). -Copyright (c) 2011 [Brandon Aaron](http://brandonaaron.net), [Burin Asavesna](http://helloburin.com), [Tom Ellis](http://www.webmuse.co.uk), [Phil Dokas](http://jetless.org) and [Louis-Rémi Babé](http://twitter.com/louis_remi). +Copyright (c) 2013 [Brandon Aaron](http://brandonaaron.net), [Burin Asavesna](http://helloburin.com), [Tom Ellis](http://www.webmuse.co.uk), [Phil Dokas](http://jetless.org) and [Louis-Rémi Babé](http://twitter.com/louis_remi).