core/class.rb in opal-0.3.31 vs core/class.rb in opal-0.3.32
- old
+ new
@@ -176,14 +176,14 @@
def name
`#{self}._name`
end
- def new(*args, &block)
+ def new()
%x{
+ var args = __slice.call(arguments);
var obj = new #{self};
obj._id = unique_id++;
- obj.$initialize._p = block;
obj.$initialize.apply(obj, args);
return obj;
}
end
\ No newline at end of file