You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2011/10/05 14:16:21 UTC
svn commit: r1179189 - /incubator/wookie/trunk/widgets/bubbles/script.js
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;
}
}