protected override void OnDisable() { base.OnDisable(); if (_killOnDisable) { SPTween.KillAll(_target, _tweenToken); } }
public override bool Trigger(object sender, object arg) { if (!this.CanTrigger) { return(false); } if (string.IsNullOrEmpty(_tweenToken)) { SPTween.KillAll(_target); } else { SPTween.KillAll(_target, _tweenToken); } return(true); }