incubator-wookie-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scot...@apache.org
Subject svn commit: r1179189 - /incubator/wookie/trunk/widgets/bubbles/script.js
Date Wed, 05 Oct 2011 12:16:21 GMT
Author: scottbw
Date: Wed Oct  5 12:16:21 2011
New Revision: 1179189

URL: http://svn.apache.org/viewvc?rev=1179189&view=rev
Log:
Fixed JS mistake in Bubbles widget - was incorrectly handling undefined as the response for
a widget preference item

Modified:
    incubator/wookie/trunk/widgets/bubbles/script.js

Modified: incubator/wookie/trunk/widgets/bubbles/script.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/bubbles/script.js?rev=1179189&r1=1179188&r2=1179189&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/bubbles/script.js (original)
+++ incubator/wookie/trunk/widgets/bubbles/script.js Wed Oct  5 12:16:21 2011
@@ -379,7 +379,7 @@ function BubbleGame( gameAreaId, newGame
     var hiScore;
     try{
 	    hiScore = widget.preferences.getItem('hiScore');
-	    if(hiScore == "undefined"){
+	    if(typeof hiScore === "undefined" || hiScore === "undefined" || hiScore === null){
 	    	hiScore = 0;
 	    }	    	
     }



Mime
View raw message