Skip to content

Commit

Permalink
Use transform(false) instead of transform('reset')
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Gnass committed Jul 28, 2010
1 parent c270ed9 commit d8d9241
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions touch-gallery/touch-gallery.js
Expand Up @@ -145,8 +145,8 @@
.width(l)
.height(l)
.insertBefore(target)
.transform('reset')
.transition({opacity: 1}, {delay: 1, duration: 0.8, onFinish: onFinish});
.transform(false)
.transition({opacity: 1}, {delay: 200, duration: 0.8, onFinish: onFinish});
}

/**
Expand Down Expand Up @@ -222,7 +222,7 @@
top: 1-Math.floor((b.height-h) / 2) + 'px', // -1px offset to match Flickr's square crops
left: -Math.floor((b.width-w) / 2) + 'px'
}))
.transform('reset');
.transform(false);

b = bounds(div);

Expand Down
6 changes: 3 additions & 3 deletions transform/transform.js
Expand Up @@ -60,8 +60,8 @@
t = new Transformation();
el.data('transform', t);
}
if (commands) {
if (commands == 'reset' || commands.reset) {
if (commands !== undefined) {
if (commands === false || commands.reset) {
t.reset();
}
else {
Expand Down Expand Up @@ -177,7 +177,7 @@
this.each(function() {
var $this = $(this);
var t = transform($this, opts);
if (!opts) {
if (opts === undefined) {
result = t.fn;
return false;
}
Expand Down

0 comments on commit d8d9241

Please sign in to comment.