Well it seems as if you can't override values with null as options. Is this
expected behaviour?


meeboo wrote:
> 
> Hi all
> 
> I have a plugin which has a couple of variables which can be overriden
> like this:
> $.fn.doStuff.defaults.classOdd = 'oddClass';
> $.fn.doStuff.defaults.classEven = 'evenClass';
> 
> Now I have the above two lines in my $(document).ready function because
> those two options are used
> just about everywhere in my website except for one place where they should
> be null. The problem is that I can't seem to change back the default
> values of the plugin variables classOdd and classEven for that unique
> instance where they need to be null.
> 
> This is the way I try to nullify them
> $('#someElement').doStuff(({  
>     classOdd: null,
>     classEven: null
> }));
> 
> When debugging the variables in firebug they still have the default
> overriden values from the $(document).ready function and haven't been
> nullified. How does one go about to nullify the values?
> 
> Thanks
> 

-- 
View this message in context: 
http://www.nabble.com/Overriding-extended-plugin-variables-tp15976657s27240p16274460.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to