-2

The cycle plugin does not appear to be loading in FF on both OS X and Windows. Nothing is happening when I inspect the dom via Firebug. I am using this test:

 if (window.cycle) {
        console.log("cycle loaded")
     }

This test fails in FF, but passes in Chrome, and IE 7+ (and Cycle works as well)

Thoughts?

Pointy
  • 405,095
  • 59
  • 585
  • 614
Scott Simpson
  • 3,832
  • 3
  • 27
  • 35
  • I wonder what your ` – Pointy Nov 03 '11 at 15:35
  • my cycles are working for me on FF 7.0.1, but I don't use that test. You say Cycle works as well, does that mean that it works but the test for window.cycle returns false? – Rodolfo Nov 03 '11 at 15:35
  • OK — I don't think that test does what I thought, because it breaks it in FF. I was calling cycle like this: $(window).load(function() { if(window.cycle){ $("#cycle").cycle({ fx: "fade", speed: 800, timeout: 4000 }); } }); Trying to only attach the plugin if the plugin was being called on that page. I removed the cycle test, and it works in FF. – Scott Simpson Nov 03 '11 at 15:39
  • This is what I needed to do:http://stackoverflow.com/questions/400916/how-to-check-if-a-jquery-plugin-is-loaded – Scott Simpson Nov 03 '11 at 15:53

1 Answers1

1

try it like this... if (jQuery().cycle) {

Rodolfo
  • 4,155
  • 23
  • 38