Be Careful with the “new-less” form of uiClass object instantiation
Last time we said Magento’s uiClass
based objects don’t require the new
keyword. This is true. However, when you’re using the inheritance features of these objects its possible to supply a custom constructor. If you do this, and your custom constructor function isn’t written in a very specific way, the new
-less feature stops working.