rvera / image-picker

Image Picker is a simple jQuery plugin that transforms a select element into a more user friendly graphical interface.
http://rvera.github.com/image-picker
Other
906 stars 214 forks source link

Parameter received by initialize callback is undefined #160

Open raquelhortab opened 1 year ago

raquelhortab commented 1 year ago

Hi, I am trying to access the image picker once it has been initialized to add some custom elements but the parameter received by the initialized callback is undefined.

Here's part of my code:

$("select[name='gnerator_eyes']").imagepicker({
              initialized: function(e){
                  console.log(e);
              },
              changed:function(){
              //....

Everything else works just fine

raquelhortab commented 1 year ago

it seems the imagepicker is actually received through this instead of the parameter