Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
fix NodeList.forEach to NodeList.array().forEach call
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Sep 24, 2013
1 parent 01b04f6 commit 74854d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polymer-layout/polymer-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
//parent.style.overflow = 'hidden';
// changes will cause another recalc at next validation step
var vertical;
this.parentNode.childNodes.forEach(function(c, i) {
this.parentNode.childNodes.array().forEach(function(c, i) {
if (c.nodeType === Node.ELEMENT_NODE && !c.hasAttribute('nolayout')) {
stylize(c, {
position: 'absolute',
Expand Down Expand Up @@ -183,7 +183,7 @@
var ww = 0, hh = 0, pre = [], fit, post = [];
var list = pre;
// gather element information (at most one recalc)
this.parentNode.childNodes.forEach(function(c, i) {
this.parentNode.childNodes.array().forEach(function(c, i) {
if (c.nodeType===Node.ELEMENT_NODE && !c.hasAttribute('nolayout')) {
var info = {
element: c,
Expand Down

0 comments on commit 74854d5

Please sign in to comment.