Permalink
Browse files

- reverted [1542]. fixes #1007.

git-svn-id: http://svn.mootools.net/trunk@1549 4db308c1-fb21-0410-9919-de62e267375e
  • Loading branch information...
1 parent edb8e19 commit 3f6b66a31040b22d6d0e21f6589b45ce7a8962dc kamicane committed with subtleGradient May 12, 2008
Showing with 7 additions and 3 deletions.
  1. +3 −1 Source/Class/Class.js
  2. +2 −1 Source/Plugins/Fx.Scroll.js
  3. +2 −1 Source/Plugins/Fx.Slide.js
View
@@ -72,9 +72,11 @@ Class.Mutators = {
case 'function':
// 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.
+
if (!arguments.callee.caller) self[key] = eval('(' + String(current).replace(/\bthis\.parent\(\s*(\))?/g, function(full, close){
return 'arguments.callee._parent_.call(this' + (close || ', ');
- }).replace(/(\d+)\.([A-Za-z_])/g, '($1).$2') + ')');
+ }) + ')');
+
// end "opera" code
self[key]._parent_ = previous;
break;
@@ -41,7 +41,8 @@ Fx.Scroll = new Class({
compute: function(from, to, delta){
var now = [];
- (2).times(function(i){
+ var x = 2;
+ x.times(function(i){
now.push(Fx.compute(from[i], to[i], delta));
});
return now;
@@ -50,7 +50,8 @@ Fx.Slide = new Class({
compute: function(from, to, delta){
var now = [];
- (2).times(function(i){
+ var x = 2;
+ x.times(function(i){
now[i] = Fx.compute(from[i], to[i], delta);
});
return now;

0 comments on commit 3f6b66a

Please sign in to comment.