Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
Checked the source and it's a simple problem of an empty options.state object.

Line 278: if(!options.state.rowNum)

When I pass in an option like this it works:
var splitLines = $.csv.parsers.splitLines(t, {separator: ",", delimiter: 
"\x22", state: { } });




Original comment by [email protected] on 7 Apr 2013 at 6:20

from jquery-csv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
I'll take a look at it.

I added more state tracking on the last update and probably just missed the 
default state object creation on the splitLines method.

Thank you for the feedback.

Original comment by [email protected] on 8 Apr 2013 at 4:25

from jquery-csv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
If you want a quick and dirty fix. Just add a 'state' object literal with 
rowNum and colNum both initialized to 0.

To see what I mean, just take a look at some of the other functions. The proper 
fix would be to make splitLines so it inherits its state from the function 
arguments with defaults as a fallback.

Original comment by [email protected] on 23 Apr 2013 at 12:59

from jquery-csv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024

Original comment by [email protected] on 9 Dec 2013 at 11:32

  • Changed state: Accepted

from jquery-csv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.