Пример #1
0
 }, J = function (a, b, c) {
     var d = s(b) ? b() : b,
         f;
     c && w(c, function (j) {
         if (f = j(d)) d = f
     });
     return d
 }, K = function (a, b, c) {
Пример #2
0
 }, L = function (a, b, c) {
     if (!s(a)) {
         var d = a;
         a = d.init || function () {};
         i(a.prototype, d)
     }
     b && K(a, b, true);
     a.getName = a.getName || function () {
         return c
     };
     var f = a.prototype;
     f.constructor = a;
     f.getClass = function () {
         return a
     };
     return a
 }, W = function () {
Пример #3
0
 }, x = function (a, b, c, d, f) {
     var j = 0,
         P = a.length - 1,
         Q, m, k, n, t, C = [],
         D, h, r = O(function (e, l) {
             return l ? r.load(e, l) : b(e, k)
         }),
         y = new R(r),
         S = y.exports,
         Z = {
             require: r,
             exports: S,
             module: y
         }, T = function () {
             w(C, function (e, l) {
                 var z;
                 if (!(z = Z[e])) z = b(e,
                     k);
                 C[l] = z
             });
             return C
         };
     for (r.normalize = function (e) {
         return q(e, k)
     }; j < P; j++) {
         m = a[j];
         if (typeof m == "string")
             if (k) n = q(m, k);
             else k = y.id = q(m);
             else if (B(m)) C = m;
         else if (f) t = m;
         else n = m.superclass
     }
     h = a[P];
     if (d) D = function (e) {
         if (s(h)) h = h.apply(g, T().concat([r, e]));
         if (h) i(s(e) ? e.prototype : e, h)
     };
     else {
         if (c || n) D = function (e) {
             n = typeof n == "string" ? r(n) : n;
             return L(e, n, k)
         };
         else if (f) {
             if (B(h)) {
                 t = h;
                 h = null
             }
             D = function (e) {
                 if (e) {
                     if (typeof e == "object") e = L(e, 0, k)
                 } else e = function () {};
                 var l = e.prototype,
                     z = 0,
                     U = function (o, H) {
                         return i(e[o] =
                             new H, {
                                 _ordinal: z++,
                                 _name: o
                             })
                     };
                 if (B(t)) w(t, function (o) {
                     U(o, e)
                 });
                 else if (t) {
                     var V = function () {};
                     V.prototype = l;
                     F(t, function (o, H) {
                         e.apply(U(o, V), H || [])
                     })
                 }
                 e.valueOf = function (o) {
                     return e[o]
                 };
                 i(l, {
                     name: M,
                     ordinal: W,
                     compareTo: X
                 });
                 if (l.toString == Object.prototype.toString) l.toString = M;
                 return e
             }
         }
         Q = s(h) ? function () {
             var e = h.apply(g, T().concat([r, S, y]));
             return e === undefined ? y.exports : e
         } : h
     }
     return g.define(k, Q, D)
 }, R = function (a) {
Пример #4
0
 require = O(function (a, b) {
     return s(b) ? require.load(a, b) : p(q(a))
 });
Пример #5
0
 if (d) D = function (e) {
     if (s(h)) h = h.apply(g, T().concat([r, e]));
     if (h) i(s(e) ? e.prototype : e, h)
 };