jhlywa/chess.js — pull request #43 by toffer (2013-10-20 09:21:11+00:00)
Title: Values for SetUp and FEN properties of header are reversed

In the comment for the pgn function, this PGN spec is referenced: http://www.chessclub.com/help/PGN-spec.

In section 9.7 of the PGN spec, it says the SetUp header should have a value of "0" or "1", while the FEN header should have a FEN string.

In update_setup(), the assignments of values for SetUp and FEN are backwards.