trap null prototype in call to HTMLElementElement.component

This commit is contained in:
Scott Miles
2012-10-22 18:43:13 -07:00
parent 15449e3f4d
commit 6743c1744b

View File

@@ -237,7 +237,7 @@ license that can be found in the LICENSE file.
this.attrObserver = new AttrObserver(this);
}
});
var p = inUber.prototype;
var p = inUber.prototype || {};
// attach some API
// TODO(sjmiles): this is probably not the best way to do this;
// probably better to insert another link in the prototype chain