I have a jQuery plugin that returns an instance of a regular javascript class. Inside this class I have a public method setting the style of the selector element with jquery.
As you can see jquery doesnt set the css of the element when it receives the undefined argument (value). But if I remove the second argument (value) jquery sets normally the css into the element.
UPDATE:
This is not a matter of test the value argument inside the method, but
make the thing work without any modification in its structure. Since the
css() receives 2 arguments and my method passes the identical 2, the
method css() should behave equally in both, but thats not what is
happening. Why?