Browse Source

VMM.Library.animate(): don’t churn object copies

This avoids declaring an object unless we didn’t receive one
pull/681/head
Chris Adams 11 years ago
parent
commit
5c4edc9502
  1. 6
      source/js/Core/Core/VMM.Library.js

6
source/js/Core/Core/VMM.Library.js

@ -452,7 +452,7 @@ if(typeof VMM != 'undefined') {
var _ease = "easein",
_que = false,
_duration = 1000,
_att = {};
_att;
if (duration != null) {
if (duration < 1) {
@ -473,9 +473,9 @@ if(typeof VMM != 'undefined') {
if (att != null) {
_att = att
_att = att;
} else {
_att = {opacity: 0}
_att = {opacity: 0};
}
if (VMM.Browser.features.css.transitions && !('scrollTop' in _att)) {

Loading…
Cancel
Save