root/galaxy-central/static/scripts/packed/class.js @ 2

リビジョン 2, 0.7 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1/*
2 *  Class definition
3 *
4 *  Copyright (c) 2008 John Resig (http://ejohn.org/blog/simple-javascript-inheritance/)
5 *  Inspired by base2 and Prototype
6 */
7"use strict";(function(){var a=false,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(g){var f=this.prototype;a=true;var e=new this();a=false;for(var d in g){e[d]=(typeof g[d]==="function"&&typeof f[d]==="function"&&b.test(g[d])?(function(h,i){return function(){var k=this._super;this._super=f[h];var j=i.apply(this,arguments);this._super=k;return j}}(d,g[d])):g[d])}function c(){if(!a&&this.init){this.init.apply(this,arguments)}}c.prototype=e;c.constructor=c;c.extend=arguments.callee;return c}}());
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。