{status: true, message: "", data: {…}}
status: true
message: ""
data:
name: (...)
availableFields: (...)
availableOptions: (...)
__ob__: we {value: {…}, dep: ce, vmCount: 0}
get name: ƒ ()
set name: ƒ (t)
get availableFields: ƒ ()
set availableFields: ƒ (t)
get availableOptions: ƒ ()
set availableOptions: ƒ (t)
__proto__: Object
__proto__: Object
{
"status": bool,
"message": string
"data": {
"name": array
"availableFields": array
"availableOptions": array
}
}
function initFavs()
{
// Handle Favorites
var items = document.getElementsByClassName('product_fav');
for(var x = 0; x < items.length; x++)
{
var item = items[x];
item.addEventListener('click', function(fn)
{
fn.target.classList.toggle('active');
console.log(fn.target);
});
}
}