Skip to content
Snippets Groups Projects
Commit ff126f4f authored by Oleksii Korshenko's avatar Oleksii Korshenko Committed by GitHub
Browse files

MAGETWO-83135: Changed constructor typo in Javascript class #11933

parents c21a3a63 c1d7ac1d
Branches
No related merge requests found
......@@ -27,12 +27,12 @@ define([
* Creates constructor function which allows
* initialization without usage of a 'new' operator.
*
* @param {Object} protoProps - Prototypal propeties of a new consturctor.
* @param {Function} consturctor
* @returns {Function} Created consturctor.
* @param {Object} protoProps - Prototypal properties of a new constructor.
* @param {Function} constructor
* @returns {Function} Created constructor.
*/
function createConstructor(protoProps, consturctor) {
var UiClass = consturctor;
function createConstructor(protoProps, constructor) {
var UiClass = constructor;
if (!UiClass) {
......@@ -61,7 +61,7 @@ define([
Class = createConstructor({
/**
* Entry point to the initialization of consturctors' instance.
* Entry point to the initialization of constructors' instance.
*
* @param {Object} [options={}]
* @returns {Class} Chainable.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment