Permalink
Browse files

Update slidebox/slidebox.js

transitioned event for slide end.  changed conditionals to this.firstElementChild
  • Loading branch information...
tiggerunix committed Jan 5, 2013
1 parent aa6f3c4 commit fe83a08e2d5e9e4d13d05f014ca0b60669781322
Showing with 2 additions and 3 deletions.
  1. +2 −3 slidebox/slidebox.js
View
@@ -1,4 +1,3 @@
-
(function(){
var transform = xtag.prefix.js + 'Transform',
@@ -41,7 +40,7 @@
onInsert: init,
events:{
'transitionend': function(e){
- if (e.target == this) xtag.fireEvent(this, 'slideend');
+ if (e.target == this.firstElementChild) xtag.fireEvent(this, 'slideend');
}
},
setters: {
@@ -79,4 +78,4 @@
}
});
-})();
+})();

0 comments on commit fe83a08

Please sign in to comment.