vendredi 18 mars 2016

.trigger parameters won't be passed

I have this function it is from a plugin I use in wordpress.

this.changeColor = function(element, hex, temp, colorLinking) {
console.log('hex',hex);   
};

I want to trigger it and pass some parameters.

$('#fancy-product-designer-' + productID + '').trigger('changeColor', [obj,'#ffffff',true,true]) ;

But the parameters won't pass through the change color function.

The console logs: hex – false

What can I do to make the parameters pass?

Thanks in advance.

Greetings, Robin



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire