Skip to content

Commit

Permalink
vulcanizing-again
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Jan 19, 2015
1 parent 5c7de70 commit 3a179c3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions meme-together.html
Original file line number Diff line number Diff line change
Expand Up @@ -3918,7 +3918,7 @@ <h1>{{heading}}</h1>
</style>
<div>
<div class="create-new" on-tap="{{createMemeHandler}}">
...
<h2 style="margin: 0">Meme Together!</h2>
<paper-fab icon="add" mini=""></paper-fab>
</div>
<paper-dialog id="meme_list" heading="Choose your Meme" transition="core-transition-top">
Expand Down Expand Up @@ -3964,13 +3964,17 @@ <h1>{{heading}}</h1>
}
that.feed.observe(function(events){
for(var i in events){
var new_meme = document.createElement("meme-container");
new_meme.yatta = events[i].value;
var b = that.$.meme_containers.children[events[i].position];
if(b != null){
that.$.meme_containers.insertBefore(new_meme,b)
if(events[i].type === "insert"){
var new_meme = document.createElement("meme-container");
new_meme.yatta = events[i].value;
var b = that.$.meme_containers.children[events[i].position];
if(b != null){
that.$.meme_containers.insertBefore(new_meme,b)
} else {
that.$.meme_containers.appendChild(new_meme)
}
} else {
that.$.meme_containers.appendChild(new_meme)
that.$.meme_containers.removeChild(that.$.meme_containers.children[events[i].position]);
}
}
});
Expand Down

0 comments on commit 3a179c3

Please sign in to comment.