jQuery extend an event variable
<p>The plugin has this variable </p>

<pre><code>this.onValid = options.onValid || function(){ this.insertMessage(this.createMessageSpan()); this.addFieldClass(); };
</code></pre>

<p>The problem is,when i define a new instance I want to add a new function to this.onValid, I don't want to override the default events?</p>

<p>How can I extend the variable this.onValid ? </p>
