Changeset 1540
- Timestamp:
- 04/21/08 09:53:03 (3 weeks ago)
- Location:
- trunk
- Files:
-
- 10 modified
-
Compatibility/Request/Request.JSON.js (modified) (1 diff)
-
Compatibility/Request/Request.js (modified) (1 diff)
-
Source/Class/Class.js (modified) (4 diffs)
-
Source/Fx/Fx.Morph.js (modified) (1 diff)
-
Source/Fx/Fx.Tween.js (modified) (1 diff)
-
Source/Fx/Fx.js (modified) (2 diffs)
-
Source/Plugins/Fx.Elements.js (modified) (1 diff)
-
Source/Plugins/Fx.Scroll.js (modified) (1 diff)
-
Source/Plugins/Fx.Slide.js (modified) (1 diff)
-
Source/Request/Request.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compatibility/Request/Request.JSON.js
r1531 r1540 14 14 15 15 send: function(data){ 16 if (!this.check( data)) return this;16 if (!this.check(arguments.callee, data)) return this; 17 17 return this.parent({url: this.url, data: {json: Json.encode(data)}}); 18 18 }, -
trunk/Compatibility/Request/Request.js
r1531 r1540 19 19 20 20 send: function(url, data){ 21 if (!this.check( url, data)) return this;21 if (!this.check(arguments.callee, url, data)) return this; 22 22 return this.parent({url: url, data: data}); 23 23 }, -
trunk/Source/Class/Class.js
r1535 r1540 22 22 if (!this[mutator]) continue; 23 23 Class.Mutators[mutator](this, this[mutator]); 24 delete this[mutator]; 24 25 } 25 26 … … 63 64 var instance = new klass($empty); 64 65 66 delete instance.parent; 67 delete instance.parentOf; 68 65 69 for (var key in instance){ 66 70 … … 77 81 78 82 switch (ctype){ 79 case 'function': self[key]._parent_ = previous; break; 83 case 'function': 84 85 // opera does not support function.caller, so we replace the function code with brute force. Not pretty, but its just for opera. 86 // if future opera versions will support function.caller, this code wont be executed anymore. 87 // this code will be only executed if the current browser does not support function.caller (only opera). 88 89 if (!arguments.callee.caller) self[key] = eval('(' + current.toString().replace(/\bthis\.parent\((.*)\)/g, function(full, args){ 90 return 'arguments.callee._parent_.call(' + ((args) ? 'this, ' + args : 'this') + ')'; 91 }) + ')'); 92 93 //end "opera" code 94 95 self[key]._parent_ = previous; 96 break; 80 97 case 'object': self[key] = $merge(previous, current); 81 98 } … … 86 103 return arguments.callee.caller._parent_.apply(this, arguments); 87 104 }; 105 106 self.parentOf = function(descendant){ 107 return descendant._parent_.apply(this, Array.slice(arguments, 1)); 108 }; 88 109 89 110 }; -
trunk/Source/Fx/Fx.Morph.js
r1531 r1540 29 29 30 30 start: function(properties){ 31 if (!this.check( properties)) return this;31 if (!this.check(arguments.callee, properties)) return this; 32 32 if (typeof properties == 'string') properties = this.search(properties); 33 33 var from = {}, to = {}; -
trunk/Source/Fx/Fx.Tween.js
r1531 r1540 26 26 27 27 start: function(property, from, to){ 28 if (!this.check( property, from, to)) return this;28 if (!this.check(arguments.callee, property, from, to)) return this; 29 29 var args = Array.flatten(arguments); 30 30 this.property = this.options.property || args.shift(); -
trunk/Source/Fx/Fx.js
r1530 r1540 53 53 }, 54 54 55 check: function( ){55 check: function(caller){ 56 56 if (!this.timer) return true; 57 57 switch (this.options.link){ 58 58 case 'cancel': this.cancel(); return true; 59 case 'chain': this.chain( arguments.callee.caller.bind(this, arguments)); return false;59 case 'chain': this.chain(caller.bind(this, Array.slice(arguments, 1))); return false; 60 60 } 61 61 return false; … … 63 63 64 64 start: function(from, to){ 65 if (!this.check( from, to)) return this;65 if (!this.check(arguments.callee, from, to)) return this; 66 66 this.from = from; 67 67 this.to = to; -
trunk/Source/Plugins/Fx.Elements.js
r1531 r1540 34 34 35 35 start: function(obj){ 36 if (!this.check( obj)) return this;36 if (!this.check(arguments.callee, obj)) return this; 37 37 var from = {}, to = {}; 38 38 for (var i in obj){ -
trunk/Source/Plugins/Fx.Scroll.js
r1531 r1540 49 49 50 50 start: function(x, y){ 51 if (!this.check( x, y)) return this;51 if (!this.check(arguments.callee, x, y)) return this; 52 52 var offsetSize = this.element.getSize(), scrollSize = this.element.getScrollSize(); 53 53 var scroll = this.element.getScroll(), values = {x: x, y: y}; -
trunk/Source/Plugins/Fx.Slide.js
r1531 r1540 58 58 59 59 start: function(how, mode){ 60 if (!this.check( how, mode)) return this;60 if (!this.check(arguments.callee, how, mode)) return this; 61 61 this[mode || this.options.mode](); 62 62 var margin = this.element.getStyle(this.margin).toInt(); -
trunk/Source/Request/Request.js
r1530 r1540 93 93 }, 94 94 95 check: function( ){95 check: function(caller){ 96 96 if (!this.running) return true; 97 97 switch (this.options.link){ 98 98 case 'cancel': this.cancel(); return true; 99 case 'chain': this.chain( arguments.callee.caller.bind(this, arguments)); return false;99 case 'chain': this.chain(caller.bind(this, Array.slice(arguments, 1))); return false; 100 100 } 101 101 return false; … … 103 103 104 104 send: function(options){ 105 if (!this.check( options)) return this;105 if (!this.check(arguments.callee, options)) return this; 106 106 this.running = true; 107 107