Skip to content

Commit

Permalink
Merge pull request #11 from mark100net/json-parse-fix
Browse files Browse the repository at this point in the history
allow for jquery automatically converting data to JSON #10
  • Loading branch information
Zettersten committed Dec 30, 2014
2 parents 437350d + e26abe0 commit d0b4fbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 3 additions & 1 deletion jquery.gracket.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
// global
var
container = this,
data = (typeof container.data("gracket") === "undefined") ? [] : JSON.parse(container.data("gracket")),
data = (typeof container.data("gracket") === "undefined") ? [] :
(typeof container.data("gracket") === "string") ? JSON.parse(container.data("gracket")) :
container.data("gracket"),
team_count,
round_count,
game_count,
Expand Down
11 changes: 1 addition & 10 deletions jquery.gracket.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d0b4fbd

Please sign in to comment.