Changeset 5485
- Timestamp:
- 02/04/08 19:07:34 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinelz/trunk/compress/javascripts/spinelz/spinelz_for_rubricks.js
r5435 r5485 4091 4091 Switcher.common=new Switcher(null,null,{build:false}); 4092 4092 Object.extend(Switcher.common,{toggle:function(_8,sw,_a,_b){ 4093 this._init(); 4094 Switcher.prototype.toggle.call(this,_8); 4095 },open:function(sw,_d,_e){ 4096 this._init(); 4097 Switcher.prototype.open.call(this); 4098 },close:function(sw,_10,_11){ 4099 this._init(); 4100 Switcher.prototype.close.call(this); 4101 },_init:function(sw,_13,_14){ 4093 4102 this.sw=$(sw); 4094 this.content=$(_a); 4095 if(_b){ 4096 this.options=Object.extend(Object.clone(this.options),_b); 4097 } 4098 var _c=CssUtil.appendPrefix(this.options.cssPrefix,Switcher.classNames); 4099 this.classNames=new CssUtil([Switcher.classNames,_c]); 4100 Switcher.prototype.toggle.call(this,_8); 4103 this.content=$(_13); 4104 if(_14){ 4105 this.options=Object.extend(Object.clone(this.options),_14); 4106 } 4107 var _15=CssUtil.appendPrefix(this.options.cssPrefix,Switcher.classNames); 4108 this.classNames=new CssUtil([Switcher.classNames,_15]); 4101 4109 }}); 4102 4110 spinelz/trunk/compress/javascripts/spinelz/switcher.js
r5332 r5485 54 54 Switcher.common=new Switcher(null,null,{build:false}); 55 55 Object.extend(Switcher.common,{toggle:function(_8,sw,_a,_b){ 56 this._init(); 57 Switcher.prototype.toggle.call(this,_8); 58 },open:function(sw,_d,_e){ 59 this._init(); 60 Switcher.prototype.open.call(this); 61 },close:function(sw,_10,_11){ 62 this._init(); 63 Switcher.prototype.close.call(this); 64 },_init:function(sw,_13,_14){ 56 65 this.sw=$(sw); 57 this.content=$(_ a);58 if(_ b){59 this.options=Object.extend(Object.clone(this.options),_ b);66 this.content=$(_13); 67 if(_14){ 68 this.options=Object.extend(Object.clone(this.options),_14); 60 69 } 61 var _c=CssUtil.appendPrefix(this.options.cssPrefix,Switcher.classNames); 62 this.classNames=new CssUtil([Switcher.classNames,_c]); 63 Switcher.prototype.toggle.call(this,_8); 70 var _15=CssUtil.appendPrefix(this.options.cssPrefix,Switcher.classNames); 71 this.classNames=new CssUtil([Switcher.classNames,_15]); 64 72 }}); 65 73 spinelz/trunk/src/javascripts/spinelz/switcher.js
r5332 r5485 84 84 Object.extend(Switcher.common, { 85 85 toggle: function(event, sw, content, options) { 86 this._init(); 87 Switcher.prototype.toggle.call(this, event); 88 }, 89 90 open: function(sw, content, options) { 91 this._init(); 92 Switcher.prototype.open.call(this); 93 }, 94 95 close: function(sw, content, options) { 96 this._init(); 97 Switcher.prototype.close.call(this); 98 }, 99 100 _init: function(sw, content, options) { 86 101 this.sw = $(sw); 87 102 this.content = $(content); … … 89 104 var customCss = CssUtil.appendPrefix(this.options.cssPrefix, Switcher.classNames); 90 105 this.classNames = new CssUtil([Switcher.classNames, customCss]); 91 Switcher.prototype.toggle.call(this, event);92 106 } 93 107 });
