Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensuring null as return value for compat reasons

  • Loading branch information...
commit 870d3513d2a30f1532804a4b162506d4764d6eb9 1 parent 94d0aee
Jens Arps authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  features/engine/behavior.js
  2. +1 −1  features/engine/widget.js
View
2  features/engine/behavior.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){
View
2  features/engine/widget.js
@@ -3,7 +3,7 @@ var storage = {
engine: "widget",
get: function(key){
- return widget.preferenceForKey(key);
+ return widget.preferenceForKey(key) || null;
},
set: function(key, value){
Please sign in to comment.
Something went wrong with that request. Please try again.