Skip to content

Commit

Permalink
Update to latest consolidated repo
Browse files Browse the repository at this point in the history
  • Loading branch information
robbear committed May 26, 2015
1 parent ab4916c commit 18e71d1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions basic-framed-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,15 @@
_lastHeight: null,

// Listen for load events on children of the specified tag type.
// TODO: Share this with basic-framed-content.
_listenForLoadEvents: function(tag) {
var elements = Polymer.dom(this).querySelectorAll(tag);
Array.prototype.forEach.call(elements, function(element) {
element.addEventListener('load', function() {
this._checkForHeightChange();
}.bind(this));
var childNodes = Basic.ContentHelpers.flattenChildNodes(this);
Array.prototype.forEach.call(childNodes, function(child) {
if (child.localName === tag) {
child.addEventListener('load', function() {
this.recalc();
}.bind(this));
}
}.bind(this));
},

Expand Down

0 comments on commit 18e71d1

Please sign in to comment.