jQuery UI, detect if options have been entered?

Posted by Val on Stack Overflow See other posts from Stack Overflow or by Val
Published on 2010-04-02T11:28:51Z Indexed on 2010/04/02 11:33 UTC
Read the original article Hit count: 279

Filed under:
|
|

does any one know how to check if the called ui (custom) has also options inputed or using the defaults?

for example:

$('#selector').myUI();//does not have options.
$('#selector').myUI({option:'foo',{op:'bar'}});//ui has options.
$('#selector').myUI('value');//ui has options.

so if i was on:

(function($) {
$.widget("ui.myUI", {
   options = this.options;
   //check if options have been entered or the default values have been used?
})

});

Hope that i am not 2 confusing :)

thnks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ui