diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-07-15 02:00:34 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-07-15 02:00:34 +0000 |
commit | c2ce22addf96d67d46e4da6401fb902c88613128 (patch) | |
tree | 86fda2257ea7fdf2568712c9bf6062b6ee44727c | |
parent | e96c202a3500e1a6a9744313d6acf99019b4559c (diff) | |
download | jquery-ui-c2ce22addf96d67d46e4da6401fb902c88613128.tar.gz jquery-ui-c2ce22addf96d67d46e4da6401fb902c88613128.zip |
Magnifier: Partial cleanup.
-rw-r--r-- | ui/ui.magnifier.js | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/ui/ui.magnifier.js b/ui/ui.magnifier.js index f49f8489f..393a6b6f7 100644 --- a/ui/ui.magnifier.js +++ b/ui/ui.magnifier.js @@ -79,21 +79,20 @@ $.widget("ui.magnifier", { },
reset: function(e) {
- var o = this.options, c;
+ var o = this.options;
- for (var i=0; i < this.items.length; i++) {
- c = this.items[i];
-
- $(c[0]).css({
- width: c[2][0],
- height: c[2][1],
- top: (c[3] ? c[3].top : 0),
- left: (c[3] ? c[3].left : 0)
+ $.each(this.items, function() {
+ var item = this;
+ $(item[0]).css({
+ width: item[2][0],
+ height: item[2][1],
+ top: (item[3] ? item[3].top : 0),
+ left: (item[3] ? item[3].left : 0)
});
- (o.opacity && $(c[0]).css('opacity', o.opacity.min));
- (o.zIndex && $(c[0]).css("z-index", ""));
- }
+ (o.opacity && $(item[0]).css('opacity', o.opacity.min));
+ (o.zIndex && $(item[0]).css("z-index", ""));
+ });
},
magnify: function(e) {
|