Skip to content

Commit

Permalink
- reverted [1542]. fixes #1007.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.mootools.net/trunk@1549 4db308c1-fb21-0410-9919-de62e267375e
  • Loading branch information
kamicane authored and subtleGradient committed Jun 9, 2008
1 parent edb8e19 commit 3f6b66a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Source/Class/Class.js
Expand Up @@ -72,9 +72,11 @@ Class.Mutators = {
case 'function': case 'function':
// this code will be only executed if the current browser does not support function.caller (currently only opera). // this code will be only executed if the current browser does not support function.caller (currently only opera).
// we replace the function code with brute force. Not pretty, but it will only be executed if function.caller is not supported. // we replace the function code with brute force. Not pretty, but it will only be executed if function.caller is not supported.

if (!arguments.callee.caller) self[key] = eval('(' + String(current).replace(/\bthis\.parent\(\s*(\))?/g, function(full, close){ if (!arguments.callee.caller) self[key] = eval('(' + String(current).replace(/\bthis\.parent\(\s*(\))?/g, function(full, close){
return 'arguments.callee._parent_.call(this' + (close || ', '); return 'arguments.callee._parent_.call(this' + (close || ', ');
}).replace(/(\d+)\.([A-Za-z_])/g, '($1).$2') + ')'); }) + ')');

// end "opera" code // end "opera" code
self[key]._parent_ = previous; self[key]._parent_ = previous;
break; break;
Expand Down
3 changes: 2 additions & 1 deletion Source/Plugins/Fx.Scroll.js
Expand Up @@ -41,7 +41,8 @@ Fx.Scroll = new Class({


compute: function(from, to, delta){ compute: function(from, to, delta){
var now = []; var now = [];
(2).times(function(i){ var x = 2;
x.times(function(i){
now.push(Fx.compute(from[i], to[i], delta)); now.push(Fx.compute(from[i], to[i], delta));
}); });
return now; return now;
Expand Down
3 changes: 2 additions & 1 deletion Source/Plugins/Fx.Slide.js
Expand Up @@ -50,7 +50,8 @@ Fx.Slide = new Class({


compute: function(from, to, delta){ compute: function(from, to, delta){
var now = []; var now = [];
(2).times(function(i){ var x = 2;
x.times(function(i){
now[i] = Fx.compute(from[i], to[i], delta); now[i] = Fx.compute(from[i], to[i], delta);
}); });
return now; return now;
Expand Down

0 comments on commit 3f6b66a

Please sign in to comment.