Bug Tracker

Changeset 4466

Show
Ignore:
Timestamp:
01/16/08 18:05:56 (11 months ago)
Author:
braeker
Message:

Avoid opera's syntax bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/current/ui.resizable.js

    r4378 r4466  
    165165 
    166166            var el = this.helper, o = this.options; 
     167             
    167168            var change = function(a,b) { 
    168                 var mod = (e['page'+(/(top|height)/.test(a) ? 'Y' : 'X')] - o.startPosition[(/(top|height)/.test(a) ? 'top' : 'left')]) * (b ? -1 : 1); 
     169                //Avoid opera's syntax bug 
     170                var page = 'page' + (/(top|height)/.test(a) ? 'Y' : 'X'), 
     171                        startPos = (/(top|height)/.test(a) ? 'top' : 'left'); 
     172                 
     173                var mod = (e[page] - o.startPosition[startPos]) * (b ? -1 : 1); 
    169174                el.css(a, o['current'+(/(height|width)/.test(a) ? 'Size' : 'Position')][a] - mod); 
    170175            };