Author: scottbw
Date: Fri Jan 27 15:04:59 2012
New Revision: 1236706

URL: http://svn.apache.org/viewvc?rev=1236706&view=rev
Log:
The Storage specification requires the API to return Null when a key for an 
item is not found rather than undefined. (See WOOKIE-20). 

Modified:
    incubator/wookie/trunk/WebContent/shared/js/wookie-wrapper.js

Modified: incubator/wookie/trunk/WebContent/shared/js/wookie-wrapper.js
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/WebContent/shared/js/wookie-wrapper.js?rev=1236706&r1=1236705&r2=1236706&view=diff
==============================================================================
--- incubator/wookie/trunk/WebContent/shared/js/wookie-wrapper.js (original)
+++ incubator/wookie/trunk/WebContent/shared/js/wookie-wrapper.js Fri Jan 27 
15:04:59 2012
@@ -65,7 +65,7 @@ var WidgetPreferences = new function Wid
      */
     this.getItem = function (key) {
         if (!this.prefs[key]) {
-            return undefined;
+            return null;
         }
         return this.prefs[key]["dvalue"];
     };


Reply via email to