projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rework API to provide global state for individual instances
[blerg.git]
/
www
/
jssrc
/
blerg
/
Post.js
diff --git
a/www/jssrc/blerg/Post.js
b/www/jssrc/blerg/Post.js
index
3ab4197
..
527ffc9
100644
(file)
--- a/
www/jssrc/blerg/Post.js
+++ b/
www/jssrc/blerg/Post.js
@@
-29,10
+29,13
@@
enyo.kind({
this.bubble('onPost', {data: this.getData()});
},
postVisibilityUpdate: function(inSender, inEvent) {
this.bubble('onPost', {data: this.getData()});
},
postVisibilityUpdate: function(inSender, inEvent) {
- if (inEvent.showing)
+ if (inEvent.showing)
{
this.show();
this.show();
- else
+ if (inEvent.data && this.getData() == "")
+ this.setData(inEvent.data);
+ } else {
this.hide();
this.hide();
+ }
},
resizePostContent: function(inSender, inEvent) {
if (this.resizePostContentTimeout)
},
resizePostContent: function(inSender, inEvent) {
if (this.resizePostContentTimeout)