jQuery.csv() plugin unknown error
<p><em><strong>Warning: wall of text</em></strong></p>

<p>I am using the jQuery.csv plugin to load a csv into an array. It worked just fine, until recently. I dont know if anything has changed, but instead of working, it displays the following error in the console:</p>

<pre><code>Uncaught TypeError: Object function (a,b){return new c.fn.init(a,b)} has no method 'csv'
</code></pre>

<p>I am calling it (the same way I was before) using the method described in the plugin documentation:</p>

<pre><code>jQuery.get(csvfile, function(data) { array = jQuery.csv()(data); });
</code></pre>

<p>the plugin file itself is very short:</p>

<pre><code>    /* Usage:
    *  jQuery.csv()(csvtext)               returns an array of arrays representing the CSV     text.
    *  jQuery.csv("\t")(tsvtext)           uses Tab as a delimiter (comma is the default)
    *  jQuery.csv("\t", "'")(tsvtext)      uses a single quote as the quote character instead of double quotes
 *  jQuery.csv("\t", "'\"")(tsvtext)    uses single &amp; double quotes as the quote character
 */
;
jQuery.extend({
    csv: function(delim, quote, linedelim) {
        delim = typeof delim == "string" ? new RegExp( "[" + (delim || ","   ) + "]" ) : typeof delim == "undefined" ? ","    : delim;
        quote = typeof quote == "string" ? new RegExp("^[" + (quote || '"'   ) + "]" ) : typeof quote == "undefined" ? '"'    : quote;
        lined = typeof lined == "string" ? new RegExp( "[" + (lined || "\r\n") + "]+") : typeof lined == "undefined" ? "\r\n" : lined;

        function splitline (v) {
            // Split the line using the delimitor
            var arr  = v.split(delim),
                out = [], q;
            for (var i=0, l=arr.length; i&lt;l; i++) {
                if (q = arr[i].match(quote)) {
                    for (j=i; j&lt;l; j++) {
                        if (arr[j].charAt(arr[j].length-1) == q[0]) { break; }
                    }
                    var s = arr.slice(i,j+1).join(delim);
                    out.push(s.substr(1,s.length-2));
                    i = j;
                }
                else { out.push(arr[i]); }
            }

            return out;
        }

        return function(text) {
            var lines = text.split(lined);
            for (var i=0, l=lines.length; i&lt;l; i++) {
                lines[i] = splitline(lines[i]);
            }
            return lines;
        };
    }
});
</code></pre>

<p>i am using jQuery.noConflict() thusly: </p>

<pre><code>    &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
     jQuery.noConflict();
&lt;/script&gt;   
&lt;script type="text/javascript" src="&lt;?php echo $path ?&gt;/js/jquery.csv.js"&gt;&lt;/script&gt; 
&lt;script type="text/Javascript" src="&lt;?php echo $path ?&gt;/js/script.js"&gt;&lt;/script&gt;
</code></pre>

<p>what i can gather is that the plugin is trying to use .extend to add the function 'csv' to the jQuery object, and that it is not working. has anyone seen/solved this issue? im assuming also that there was a recent change to 1.5.1, but changing to 1.5.2 doesnt change anything.</p>

<p>thanks in advance.</p>
