Skip to content

Commit

Permalink
Create Clases.js
Browse files Browse the repository at this point in the history
Add Libraries
  • Loading branch information
Trollhunters501 authored Oct 23, 2023
1 parent e33c21f commit 0066aba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libs/Clases.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const Class = function ($superclass, config) {
// All classes have a superclass with the root
// of this $class hierarchy being Object.
var self = function (config) {
// Object.assign or $.extend or ...
config && Object.assign(this, config);
};
self.prototype = new $superclass(config);
return self;
};

0 comments on commit 0066aba

Please sign in to comment.