projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49c264e
)
Don't return undefined if value exists but is empty
author
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 18 Nov 2009 06:20:29 +0000
(23:20 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 18 Nov 2009 06:20:29 +0000
(23:20 -0700)
imp/js/ViewPort.js
patch
|
blob
|
history
diff --git
a/imp/js/ViewPort.js
b/imp/js/ViewPort.js
index
7ac3094
..
c008965
100644
(file)
--- a/
imp/js/ViewPort.js
+++ b/
imp/js/ViewPort.js
@@
-1458,7
+1458,11
@@
ViewPort_Buffer = Class.create({
getMetaData: function(id)
{
- return this.mdata.get(id) || this.usermdata.get(id);
+ var data = this.mdata.get(id);
+
+ return Object.isUndefined(data)
+ ? this.usermdata.get(id)
+ : data;
},
setMetaData: function(vals, priv)