1. Rune Halvorsen
  2. geist

Commits

Rune Halvorsen  committed 1650393

Update unbose

  • Participants
  • Parent commits 8303104
  • Branches default

Comments (0)

Files changed (1)

File geist/static/unbose.js

View file
         else if (isArray(thing)) {
             return this._insertElem(eleFromTpl(thing), append);
         }
-        else if (thing._elements !== undefined) {
-            return thing.forEach(function() {
-                this._insertElem(this, append);
-            });
+        else if (thing._elements !== undefined) { // thing is an unbose object
+            return thing._elements.forEach(function(e) {
+                this._insertElem(e, append);
+            }, this);
         }
         else if (typeof thing === "string") {
             return this._insertElem(eleFromTpl(tplFromZen(thing)), append);