Closed GoogleCodeExporter closed 9 years ago
The jquery docs state "Due to the way browsers interact with plugins and
external
code, the .data() method cannot be used on <object>, <applet> or <embed>
elements."
per http://api.jquery.com/data/
So, this line in slimbox2.js:
$.data(el, "slimbox", el.style.visibility)
where el will be an object, doesn't appear to be valid...
As a temporary fix, I changed to:
el.style.visibility = open ? "hidden" : 'visible'; //$.data(el, "slimbox");
so visibility is always restored.
Hope this helps ...
Chris .\\
Original comment by chris.ma...@gmail.com
on 17 Apr 2010 at 6:40
Issue caused by changes in jQuery 1.4 which prevents attaching data to nodes of
type
"object" and "embed".
Fix commited, will be part of next release (2.04)
Original comment by christophe.beyls@gmail.com
on 20 Apr 2010 at 2:13
Hey Chris,
Can u tell me where to placed this code:
el.style.visibility = open ? "hidden" : 'visible'; //$.data(el, "slimbox");
because i am suffering from same problem.
Original comment by pradeep0...@gmail.com
on 8 Jul 2010 at 12:14
Original issue reported on code.google.com by
yoan.blanc
on 11 Feb 2010 at 2:19