Skip to content

Commit

Permalink
properly pull things out of a JSON object
Browse files Browse the repository at this point in the history
  • Loading branch information
kellysutton committed Jul 26, 2012
1 parent fab7c1b commit ae4f373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jquery.typer.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ String.prototype.rightChars = function(n){
}

try {
targets = JSON.parse($e.attr($.typer.options.typerDataAttr));
targets = JSON.parse($e.attr($.typer.options.typerDataAttr)).targets;
} catch (e) {}

if (typeof targets === "undefined") {
Expand Down Expand Up @@ -251,4 +251,4 @@ String.prototype.rightChars = function(n){
typerInterval = function () {
return $.typer.options.typerInterval;
};
})(jQuery);
})(jQuery);

0 comments on commit ae4f373

Please sign in to comment.