From: Anna Sobiepanek Date: Tue, 5 Oct 2010 18:49:38 +0000 (-0400) Subject: added typeof fix [#101 state:peer-review-requested] X-Git-Tag: v0.1~28 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3ee6c52036d3634cb2dc1d62f84d1edabf24d049;p=popcorn-js.git added typeof fix [#101 state:peer-review-requested] --- diff --git a/popcorn.js b/popcorn.js index ea3142f..5f1d871 100644 --- a/popcorn.js +++ b/popcorn.js @@ -739,7 +739,7 @@ //L10n var src = this.params.src; var lang = this.params.lang; - if (lang === undefined) {lang="en";} + if (typeof lang === "undefined") { lang="en"; } //end L10n var length = this.params.numberOfWords; // Setup a default, hidden div to hold the images