Skip to content

Commit

Permalink
removing static class properties
Browse files Browse the repository at this point in the history
  • Loading branch information
catshirt committed Mar 28, 2013
1 parent bcb8116 commit f220d29
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/core/AudioletClass.js
Expand Up @@ -48,7 +48,7 @@ AudioletClass.extend = (function() {
// Helper function to correctly set up the prototype chain, for subclasses.
// Similar to `goog.inherits`, but uses a hash of prototype properties and
// class properties to be extended.
var inherits = function(parent, protoProps, staticProps) {
var inherits = function(parent, protoProps) {
var child;

// The constructor function for the new subclass is either defined by you
Expand All @@ -60,9 +60,6 @@ AudioletClass.extend = (function() {
child = function(){ parent.apply(this, arguments); };
}

// Inherit class (static) properties from parent.
_extend(child, parent);

// Set the prototype chain to inherit from `parent`, without calling
// `parent`'s constructor function.
ctor.prototype = parent.prototype;
Expand All @@ -72,9 +69,6 @@ AudioletClass.extend = (function() {
// if supplied.
if (protoProps) _extend(child.prototype, protoProps);

// Add static properties to the constructor function, if supplied.
if (staticProps) _extend(child, staticProps);

// Correctly set child's `prototype.constructor`.
child.prototype.constructor = child;

Expand Down

0 comments on commit f220d29

Please sign in to comment.