The first line of $.fn.wTooltip is
if(typeof option === 'object')
Does anyone know where option is declared and where its value is set? if(typeof option === 'object')
Does anyone know where option is declared and where its value is set? $("#bla").wTooltip({foo: "bar"}) $.fn.wTooltip = function(option, settings) $("blah").wTooltip(new String("color"));
In my recent jquery plugin I considered doing a typeof check myself but decided against it since it was too brittle. I instead checked to see if the options was === what I expected it to be first.