bootstrap-slider icon indicating copy to clipboard operation
bootstrap-slider copied to clipboard

jQuery-UI-slider still in conflict without use it

Open antwal opened this issue 7 years ago • 5 comments

Hi,

i not use jquery-ui-slider but there is this conflict:

Test 1:

  • loading jquery
  • loading jquery-mobile
  • loading bootstrapslider

in console i receive this message: bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.

and the plugin not working!!

Test 2: I have tried used the code of issue #575

    <script type="text/javascript">
        <!--
        (function ($) {
            "use strict";
            // Fix for seiyria bootstrap slider conflicting with UI-Slider
            $.fn.slider = function () { return true; };
        })(jQuery);
        //-->
    </script>

but not working.

Test 3: Used "bootstrap-slider (via data-provide-API)" not working.

Test 4: I have tried use alternative method for bound namespace at "What if there is already a slider plugin bound to the JQuery namespace?" but also this not working.

Thanks.

antwal avatar Aug 08 '16 13:08 antwal

Please provide a jsfiddle.

seiyria avatar Aug 08 '16 13:08 seiyria

Hi,

sorry can't public to jsfiddle now, i have used:

jquery 1.12.4 jquery mobile 1.4.3 jquery mobile theme / icons 1.4.3

the example code test is number 13 at http://seiyria.com/bootstrap-slider/

Thanks.

antwal avatar Aug 08 '16 13:08 antwal

I'm create fiddle at https://jsfiddle.net/qmeqkxvz/ Open console and you can see an error like bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.

Globulopolis avatar Aug 08 '16 14:08 Globulopolis

Hi,

i have created a demo for reproduce bug, you can see here: https://jsfiddle.net/p4yL0u7m/1/

here example 13: https://jsfiddle.net/p4yL0u7m/2/

on console show: VM1126 bootstrap-slider.min.js:5 bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.

and the slider not working.

Thanks.

antwal avatar Dec 20 '16 11:12 antwal

I get the same warning message in my console and I am also using jquery-ui (so maybe this is a conflict?). I am seeing a slider, but now I'm wondering if it's actually using a slider from jquery-ui since the original submitter says the slider doesn't work for him.

WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.

amberream avatar Jul 23 '21 20:07 amberream