Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* underoop.js: jive more with Underscore. remove JS keyword name conf…

…lict
  • Loading branch information...
commit ff4063b3378783f668ea36d9262315c76d8080d5 1 parent cf7135c
David Nolen authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 underoop.js
View
10 underoop.js
@@ -28,12 +28,12 @@
},
// check if an instance derives from class
- memberof: function(x, _class) {
+ isMember: function(x, _class) {
return x instanceof _class;
},
// check if the instance has the same class
- instanceof: function(x, _class) {
+ isInstance: function(x, _class) {
return x._class = _class;
},
@@ -64,10 +64,10 @@
}
});
- klass.name = name;
+ klass._name = name;
klass.prototype = new Class();
- klass.prototype.type = klass;
- klass.prototype.modules = klass.modules = modules;
+ klass.prototype._class = klass;
+ klass.prototype._modules = klass._modules = modules;
_(obj).each(function(v, k) {
klass.prototype[k] = v;
Please sign in to comment.
Something went wrong with that request. Please try again.