creating a jquery plugin that does not break the chain
<p>I wrote this function to save headaches when I move CSS around(it converts CSS strings to objects). I would like to be able to use it as a drop in for the <code>.css()</code> function. </p>

<pre><code>jQuery.fn.cCSS = function(css) {
    return this.each(function(){
    var css_obj = {};
    var tmx = "";
    ocss = css.split(";");
    $.each(ocss, function (index, elem){
        tmx = elem.trim().split(':');
        if (tmx[0].length &gt; 0) 
            css_obj[tmx[0]] = tmx[1].trim();

    });
         return  $(this).css(css_obj);
        //return $;
    });
    };

})(jQuery);
</code></pre>

<p>My problem is when I use it in "fluent" notation I always get a null error.</p>

<p>Uncaught TypeError: Cannot call method 'addClass' of null</p>

<p>I'm a bit confused what has to be returned in order not to "break the chain"</p>
