Last active
December 24, 2015 07:19
-
-
Save byk0t/6762961 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function PhysicsBody( aNode ) { | |
this.userData = aNode; | |
} | |
PhysicsBody.prototype.pbMethod = function () {}; | |
function DynamicBody( aNode ) { | |
PhysicsBody.call( this, aNode ); | |
} | |
// setting up the inheritance | |
DynamicBody.prototype = Object.create( PhysicsBody.prototype ); | |
DynamicBody.prototype.dbMethod = function () {}; | |
//var Shop = Shop || {}; | |
// | |
//Shop.Cart = function(options) { | |
// | |
// //call parent constructor | |
// Shop.GlobalShopCart.call(this, options); | |
// | |
//}; | |
// | |
////set up prototype | |
//Shop.Cart.prototype = Object.create( Shop.GlobalShopCart.prototype); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment