Skip to content

Commit

Permalink
Rebuild klassified[.min].js
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasPetton committed Mar 17, 2017
1 parent 7edfe7f commit b0ce1c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions dist/klassified.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,23 @@ define('object',[], function() {
return allSubclasses;
};

/**
* Return all concrete subclasses.
*/
object.allConcreteSubclasses = function() {
var allConcreteSubclasses = this.subclasses.filter(function(klass) {
return !klass.isAbstract;
});

this.subclasses.forEach(function(klass) {
klass.allConcreteSubclasses().forEach(function(subclass) {
allConcreteSubclasses.push(subclass);
});
});

return allConcreteSubclasses;
};

object.subclassResponsibility = subclassResponsibility;

/**
Expand Down Expand Up @@ -676,6 +693,7 @@ define('object',[], function() {
that.singletonSubclass = object.singletonSubclass;
that.abstractSubclass = object.abstractSubclass;
that.allSubclasses = object.allSubclasses;
that.allConcreteSubclasses = object.allConcreteSubclasses;
that.subclassResponsibility = subclassResponsibility;
that.extend = object.extend;
that.extensions = [];
Expand Down
2 changes: 1 addition & 1 deletion dist/klassified.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0ce1c4

Please sign in to comment.