Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dom.videoLinks.click((e) => {
- e.preventDefault();
- console.log($(this));
- var self = $(this),
- url = self.attr(configuration.attribute);
- eventHandlers.showVideo(url);
- // Deactivate any active video thumbs
- dom.videoLinks.filter('.video-selected').removeClass('video-selected');
- // Activate selected video thumb
- self.addClass('video-selected');
- });
- dom.videoLinks.click(function(e) {
- e.preventDefault();
- console.log(this);
- console.log($(this));
- var self = e.this,
- url = self.attr(configuration.attribute);
- eventHandlers.showVideo(url);
- // Deactivate any active video thumbs
- dom.videoLinks.filter('.video-selected').removeClass('video-selected');
- // Activate selected video thumb
- self.addClass('video-selected');
- });
- obj.method = function(){
- console.log(this);
- $('a').click(e=>{
- console.log(this);
- })
- };
- obj.method(); // logs obj
- $('a').click(); // logs obj
Add Comment
Please, Sign In to add comment