I'm using selecter jquery. I initialize it by typing the code
$("select").selecter();
I need to make sure that the formstone selecter jquery library has completed before i start appending elements. So what i did is to is use the $.when function
initialize: function(){
    $.when($("select").selecter()).then(this.initOptions());
},
initOptions: function(){
    this.$el.find('.selecter').addClass('something');
}
But this does not work. How can i wait while formstone selecter is doing its thing before i execute another function?
Thanks,
UPDATE
Here's the update of what i did but it does not work.
initialize: function(){
   $("select").selecter({callback: this.initOptions });
},
initOptions: function(){
    this.$el.find('.selecter').addClass('something');
}
 
     
     
    