click moved to the inner element to remove event handler from the slide number

This commit is contained in:
Vadim Makeev 2011-07-18 12:13:50 +04:00
parent 1777c94c81
commit dbcbf8a3e5
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
slideList = [];
for(var i = 0, slidesLength = slides.length; i < slidesLength; i++) {
slides[i].addEventListener('click', enterFull, false);
slides[i].firstChild.addEventListener('click', enterFull, false);
slideList[i] = slides[i].id;
}