joeblack9988 / slideshow

Automatically exported from code.google.com/p/slideshow
0 stars 0 forks source link

Method .destroy() throws error in IE7 #219

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Modify the example index.html to create a single show assigning it to a 
global variable

var data = { '1.jpg': { caption: '1' }, '2.jpg': { caption: '2' }, '3.jpg': { 
caption: '3' }, '4.jpg': { caption: '4' }};
myShow = new Slideshow('overlap', data, { captions: { delay: 1000 }, delay: 
3000, height: 300, hu: 'images/', width: 400 });

2. Toss a new div into the page so you can click it.
<div id="testdiv">DESTROY</div>

3. Create a click event on the div to trigger myShow.destroy()
$('testdiv').addEvent('click',function(){myShow.destroy('empty')})

What is the expected output? What do you see instead?
Expected destruction of the slideshow object+elements. Resulting error thrown 
is "Object doesn't support this action"

What version of the product are you using? On what operating system and browser?
Slideshow-1.3.2.110508
Windows - IE7 - 7.0.5730.11

Please provide any additional information below.

Original issue reported on code.google.com by tony.to...@gmail.com on 22 Aug 2011 at 8:05