[-] FO : fix bug #PSFV-540 - JS error with homeslider and IE < 9

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13741 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-02-29 14:34:30 +00:00
parent e5442f45cf
commit 7cbb9cc07d

View File

@@ -1,4 +1,5 @@
/**
* WARNING : library has been patched (search for START PATCH tag) from base version 3.0 to fix an error with IE < 9
* jQuery bxSlider v3.0
* http://bxslider.com
*
@@ -111,4 +112,4 @@ while(loopLength>0){$.each(array,function(index,val){if(loopLength>0){if(!startP
return sample;}
this.each(function(){base.initShow();});return this;}
jQuery.fx.prototype.cur=function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}
var r=parseFloat(jQuery.css(this.elem,this.prop));return r;}})(jQuery);
var r=parseFloat(jQuery.css(this.elem,this.prop));/* START PATCH Patch applied on top of library version 3.0 (see https://github.com/wandoledzep/bxslider/issues/89) Empty strings, null, undefined and "auto" are converted to 0, complex values such as "rotate(1rad)" are returned as is, simple values such as "10px" are parsed to Float.*/return isNaN(parsed = parseFloat(r)) ? !r || r === "auto" ? 0 : r : parsed;/* END PATCH - BEFORE PATCH WAS return r; */}})(jQuery);