Skip to content

Commit

Permalink
Rename reopenClass to mixinClassMethods.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebryn committed Oct 19, 2011
1 parent 48fac70 commit f0e9907
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sproutcore-runtime/lib/system/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,15 +692,15 @@ Binding.prototype = {

};

Binding.reopenClass = function(classMethods) {
function mixinClassMethods(obj, classMethods) {
for (var key in classMethods) {
if (typeof classMethods[key] === 'function') {
Binding[key] = classMethods[key];
obj[key] = classMethods[key];
}
}
};

Binding.reopenClass(/** @scope SC.Binding */ {
mixinClassMethods(Binding, {

/**
@see SC.Binding.prototype.from
Expand Down

1 comment on commit f0e9907

@trek
Copy link
Member

@trek trek commented on f0e9907 Oct 20, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no tests, so I can see why it got missed, for it but Binding comments still refer to #reopen as a way to extend a Binding object. Maybe a quick look for SC.Object specific documentation is in order?

Please sign in to comment.