Skip to content

Commit

Permalink
change name (#37432)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvchari committed Jan 21, 2022
1 parent d0d066a commit 44af66f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/preact/amp-base-element.js
Expand Up @@ -121,12 +121,12 @@ export class AmpPreactBaseElement extends PreactBaseElement {
* Changes the inheritance hierarchy of X such that it now extends from Y.
* If X previously inherited from Z, it now no longer does so.
* Dangerous, use sparingly!
* @param {*} X
* @param {*} Y
* @param {*} clazz
* @param {*} superClazz
* @return {*}
*/
export function setSuperClass(X, Y) {
Object.setPrototypeOf(X, Y);
Object.setPrototypeOf(X.prototype, Y.prototype);
return X;
export function setSuperClass(clazz, superClazz) {
Object.setPrototypeOf(clazz, superClazz);
Object.setPrototypeOf(clazz.prototype, superClazz.prototype);
return clazz;
}

0 comments on commit 44af66f

Please sign in to comment.