I am having some issues with getting the needed value from using $(this) within my code below:
....
open: function() {
console.log('Popup is opened');
console.log($(this).get(0).src);
},
....
I've also tried:
....
open: function() {
console.log('Popup is opened');
console.log($(this)[0].src);
},
....
But I do not seem to have the correct structor in order to get that value.
The objects of this are:
{
"0": {
"isIE7": false,
"isIE8": false,
"isLowIE": false,
"isAndroid": false,
"isIOS": false,
"supportsTransition": true,
"probablyMobile": false,
"popupsCache": {
},
"items": [{
"el": {
"0": {
"jQuery111108245181320528183": 1
},
"context": {
"jQuery111108245181320528183": 1
},
"length": 1
},
"src": "http://linkishere.com/Dolphin.jpg",
"type": "image",
"index": 0,
"parsed": true,
"img": {
"0": {
"jQuery111108245181320528183": 20
},
"context": {
"jQuery111108245181320528183": 20
},
"length": 1
},
"hasSize": true,
"preloaded": true
}],
Etc etc.....
What am I missing?