Permalink
Browse files

Ensuring null as return value for compat reasons

  • Loading branch information...
1 parent 94d0aee commit 870d3513d2a30f1532804a4b162506d4764d6eb9 Jens Arps committed Feb 18, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 features/engine/behavior.js
  2. +1 −1 features/engine/widget.js
@@ -23,7 +23,7 @@ var storage = {
},
get: function(key){
- return this.store.getAttribute(key);
+ return this.store.getAttribute(key) || null;
},
set: function(key, value){
@@ -3,7 +3,7 @@ var storage = {
engine: "widget",
get: function(key){
- return widget.preferenceForKey(key);
+ return widget.preferenceForKey(key) || null;
},
set: function(key, value){

0 comments on commit 870d351

Please sign in to comment.