Browse Source

Fix callback names for start, complete in transition

pull/1243/head
jlukic 10 years ago
parent
commit
33b08e028d
1 changed files with 4 additions and 4 deletions
  1. 8
      src/definitions/modules/transition.js

8
src/definitions/modules/transition.js

@ -196,7 +196,7 @@ $.fn.transition = function() {
module.remove.duration(); module.remove.duration();
module.remove.animating(); module.remove.animating();
} }
$.proxy(settings.complete, this)();
$.proxy(settings.onComplete, this)();
}, },
has: { has: {
@ -230,7 +230,7 @@ $.fn.transition = function() {
.one(animationEnd + '.complete' + eventNamespace, module.complete) .one(animationEnd + '.complete' + eventNamespace, module.complete)
; ;
module.set.duration(settings.duration); module.set.duration(settings.duration);
$.proxy(settings.start, this)();
$.proxy(settings.onStart, this)();
module.debug('Starting tween', animation, $module.attr('class')); module.debug('Starting tween', animation, $module.attr('class'));
}, },
display: function() { display: function() {
@ -808,8 +808,8 @@ $.fn.transition.settings = {
namespace : 'transition', namespace : 'transition',
// animation complete event // animation complete event
start : function() {},
complete : function() {},
onStart : function() {},
onComplete : function() {},
onShow : function() {}, onShow : function() {},
onHide : function() {}, onHide : function() {},

Loading…
Cancel
Save