Skip to content

Commit

Permalink
Merge pull request #1650 from magento-engcom/2.2-develop-prs
Browse files Browse the repository at this point in the history
Public Pull Requests

#11933 Changed constructor typo in Javascript class by @dverkade
  • Loading branch information
Oleksii Korshenko authored Nov 1, 2017
2 parents c21a3a6 + ff126f4 commit 89a497e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/code/Magento/Ui/view/base/web/js/lib/core/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 89a497e

Please sign in to comment.