Coder Social home page Coder Social logo

Comments (2)

davemccall avatar davemccall commented on July 19, 2024

As far as I can tell, the fx.cur method being defined here is essentially the same as the one included in jQuery's latest version (except jQuery's does a better job in handling the "auto" value).

Here's the bxslider version:

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;

Here's the jQuery 1.6.4 version:

if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
    return this.elem[ this.prop ];
}

var parsed,
    r = jQuery.css( this.elem, this.prop );
// 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;

The bxslider version is causing a conflict with the rotate3Di plugin as well which overrides the cur method because it doesn't handle skew correctly.

I wonder whether bxSlider is overriding this method because an older version of jQuery didn't handle cur as nicely.

I believe removing this method override from bxSlider should not cause an issue assuming you're using jQuery 1.6.4.

But that's just this guy's best analysis of the situation.

from bxslider-3.

 avatar commented on July 19, 2024

This override also conflicts with Qtip 1.0.0. The issue was specific to IE8. Thanks for the suggestion to comment the function out.

from bxslider-3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.