This project is archived and is in readonly mode.

#522 ✓hold

Parsers array is ignored in HtmlTable.Sort

Reported by gmiller | February 24th, 2011 @ 05:20 PM

One of the options for the HtmlTable.Sort contstructor is an array of parsers. However if you do something like this:

var table = new HtmlTable({
    headers: ['click me to sort'],
    parsers: [HtmlTable.Parsers.float] 

the parsers array is effectively ignored, because in detectParsers, the parser types are accepted if they are "string" and "function". HtmlTable.Parsers.float is an object.

I think a one line change will fix the problem.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions