Comparing version 0.3.0 to 0.4.0
@@ -5,4 +5,2 @@ (function() { | ||
module.exports = Mixin = (function() { | ||
function Mixin() {} | ||
Mixin.includeInto = function(constructor) { | ||
@@ -14,3 +12,3 @@ var name, value, _ref; | ||
if (ExcludedClassProperties.indexOf(name) === -1) { | ||
if (constructor[name] == null) { | ||
if (!constructor.hasOwnProperty(name)) { | ||
constructor[name] = value; | ||
@@ -29,3 +27,3 @@ } | ||
if (ExcludedPrototypeProperties.indexOf(name) === -1) { | ||
if (object[name] == null) { | ||
if (!object.hasOwnProperty(name)) { | ||
object[name] = this.prototype[name]; | ||
@@ -38,2 +36,8 @@ } | ||
function Mixin() { | ||
if (typeof this.extended === "function") { | ||
this.extended(); | ||
} | ||
} | ||
return Mixin; | ||
@@ -40,0 +44,0 @@ |
{ | ||
"name": "mixto", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "A mixin superclass. Its subclasses have `.extend` and `.includeInto` methods to mix behavior into other objects and classes.", | ||
@@ -5,0 +5,0 @@ "main": "lib/mixin", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4172
42