mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 18:55:29 -05:00
move examples from public to their own examples folder
This commit is contained in:
14
pyscriptjs/examples/mario/js/util.js
Normal file
14
pyscriptjs/examples/mario/js/util.js
Normal file
@@ -0,0 +1,14 @@
|
||||
(function() {
|
||||
if (typeof Mario === 'undefined') {
|
||||
window.Mario = {};
|
||||
}
|
||||
|
||||
var Util = Mario.Util = {};
|
||||
|
||||
Util.inherits = function(subclass, superclass) {
|
||||
function Surrogate() {};
|
||||
|
||||
Surrogate.prototype = superclass.prototype;
|
||||
subclass.prototype = new Surrogate();
|
||||
}
|
||||
})()
|
||||
Reference in New Issue
Block a user