Permalink
Browse files

remake

  • Loading branch information...
1 parent e3f24ab commit 24540f044c4ddfb6fb8927549330ddc852705d92 @fat fat committed Mar 11, 2011
Showing with 5 additions and 5 deletions.
  1. +4 −4 klass.js
  2. +1 −1 klass.min.js
View
@@ -6,12 +6,12 @@
!function(context){
var fnTest = /xyz/.test(function(){xyz;}) ? /\bsupr\b/ : /.*/, noop = function(){};
- this.klass = function(o){
+ function klass(o){
var methods, _constructor = typeof o == 'function' ? (methods = {}, o) : (methods = o, noop);
- return klass.extend.call(_constructor, o);
+ return extend.call(_constructor, o);
};
- klass.extend = function(o) {
+ function extend(o) {
var supr = this,
_methods,
@@ -58,4 +58,4 @@
context.klass = klass;
}
-}(this);
+}(this);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 24540f0

Please sign in to comment.