mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix empty Component using Component.create()
This commit is contained in:
@@ -485,7 +485,8 @@ _.extend(Component.prototype, {
|
||||
Component.create = function (/*args*/) {
|
||||
constructorsLocked = false;
|
||||
var comp = new this;
|
||||
Component.apply(comp, arguments);
|
||||
if (this !== Component)
|
||||
Component.apply(comp, arguments);
|
||||
return comp;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user