Permalink
Browse files

Introduce main()

  • Loading branch information...
1 parent 0e5311f commit b3ee07749175448bd5b4406123c67d8ba03b1a83 @tnhu committed Apr 26, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −0 CHANGELOG.txt
  2. +0 −4 jsface.min.js
View
@@ -3,6 +3,13 @@ v2.1.1 TBD
* Add overloading plugin: support method overloading, type
checking and arguments validation
+v2.1.1 Apr 25, 2012
+----------------------------------------------------------------
+* Introduce main()
+* Fix bug in 2.1.0 causing all static properties got written to
+ class prototype
+* Minor toString alias optimization
+
v2.1.0 Mar 15, 2012
----------------------------------------------------------------
* Remove $super(): Speed is more important
View
@@ -1,4 +0,0 @@
-(function(i,q,r,s,w,t,j){function u(a){return a&&typeof a===q&&!(typeof a.length===r&&!a.propertyIsEnumerable(s))}function n(a){return a&&typeof a===q&&typeof a.length===r&&!a.propertyIsEnumerable(s)}function v(a){return a&&"function"===typeof a}function o(a){return v(a)&&a.prototype&&a===a.prototype.constructor}function p(a,b,d){function k(b,f){if(!d||!d.hasOwnProperty(b))a[b]=f,c&&(g[b]=f)}if(n(b))for(var f=b.length;0<=--f;)p(a,b[f],d);else{var d=d||{constructor:1,$super:1,prototype:1,$superb:1},
-c=o(a),f=o(b),g=a.prototype,h,l;if(u(b))for(h in b)k(h,b[h]);if(f)for(h in l=b.prototype,l)k(h,l[h]);c&&f&&p(g,b.prototype,d)}}function m(a,b){b||(a=(b=a,0));var d,k,f,c,g,h,l=0,e,i={constructor:1,$singleton:1,$statics:1,prototype:1,$super:1,$superp:1};g=m.overload;var j=m.plugins,b=("function"===typeof b?b():b)||{};d=b.hasOwnProperty("constructor")?b.constructor:0;k=b.$singleton;f=b.$statics;for(c in j)i[c]=1;d=k?{}:d?g?g("constructor",d):d:function(){};g=k?d:d.prototype;for(h=(a=!a||n(a)?a:[a])&&
-a.length;l<h;){e=a[l++];for(c in e)i[c]||(g[c]=e[c],k||(d[c]=e[c]));for(c in e.prototype)i[c]||(g[c]=e.prototype[c])}for(c in b)g[c]=b[c];for(c in f)d[c]=g[c]=f[c];k||(e=a&&a[0]||a,d.$super=e,d.$superp=e&&e.prototype?e.prototype:e);for(c in j)j[c](d,a,b);return d}m.plugins={};j={Class:m,extend:p,isMap:u,isArray:n,isFunction:v,isString:function(a){return"[object String]"===Object.prototype.toString.apply(a)},isClass:o};"undefined"!==typeof module&&module.exports?module.exports=j:(t=i.Class,i.Class=
-m,i.jsface=j,j.noConflict=function(){i.Class=t})})(this,"object","number","length");

0 comments on commit b3ee077

Please sign in to comment.