mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
+ Temporarily added a bunch of logging for debugging purposes (commented out)
+ Fixed a bug with iQ.fn.one that caused it to not properly set "this" + Temporarily disabled TabMirror.pausePainting, which is causing problems at the moment (will fix soon)
This commit is contained in:
parent
3ef71a6c03
commit
d60e607125
@ -584,18 +584,40 @@ iQ.fn = iQ.prototype = {
|
||||
animate: function(css, duration, callback) {
|
||||
Utils.assert('does not yet support multi-objects (or null objects)', this.length == 1);
|
||||
try {
|
||||
/*
|
||||
this.css({
|
||||
'-moz-transition-property': 'all',
|
||||
'-moz-transition-duration': '0.3s',
|
||||
'-moz-transition-timing-function': 'cubic-bezier(0.0, 0.35, .6, 1.4)'
|
||||
});
|
||||
*/
|
||||
|
||||
this.addClass(duration);
|
||||
iQ.animationCount++;
|
||||
|
||||
var self = this;
|
||||
var cleanedUp = false;
|
||||
this.one('transitionend', function() {
|
||||
if(!cleanedUp) {
|
||||
iQ.animationCount--;
|
||||
self.removeClass(duration);
|
||||
cleanedUp = true;
|
||||
if(iQ.isFunction(callback))
|
||||
callback.apply(this);
|
||||
try {
|
||||
/* Utils.log('transition ended'); */
|
||||
if(!cleanedUp) {
|
||||
iQ.animationCount--;
|
||||
|
||||
/*
|
||||
iQ(this).css({
|
||||
'-moz-transition-property': '',
|
||||
'-moz-transition-duration': '',
|
||||
'-moz-transition-timing-function': ''
|
||||
});
|
||||
*/
|
||||
|
||||
self.removeClass(duration);
|
||||
cleanedUp = true;
|
||||
if(iQ.isFunction(callback))
|
||||
callback.apply(this);
|
||||
}
|
||||
} catch(e) {
|
||||
Utils.log(e);
|
||||
}
|
||||
});
|
||||
|
||||
@ -690,7 +712,7 @@ iQ.fn = iQ.prototype = {
|
||||
|
||||
var handler = function(e) {
|
||||
iQ(this).unbind(type, handler);
|
||||
return func(e);
|
||||
return func.apply(this, [e]);
|
||||
};
|
||||
|
||||
return this.bind(type, handler);
|
||||
|
Loading…
Reference in New Issue
Block a user