So ersetzen Sie veraltete jquery $.proxyJquery

JQuery-Programmierung
Anonymous
 So ersetzen Sie veraltete jquery $.proxy

Post by Anonymous »

Ich habe diesen JQuery-Code und erhalte eine veraltete Meldung. Wie ersetze ich sie, um die veralteten Nachrichten zu entfernen?

Code: Select all

api.$element.on(this.eventType('start'), $.proxy(this.start, this));
api.$element.find('a').on(this.eventType('start'), function(e) {
this.timeStamp = e.timeStamp;
}).on('click', function(e) {
if (e.timeStamp - this.timeStamp > 400) {
e.preventDefault(); // prevent Click
}
});

Code: Select all

$(document)
.on(this.eventType('move'), $.proxy(this.move, this))
.on(this.eventType('end'), $.proxy(this.end, this));

Code: Select all

singleTapTimeout = setTimeout($.proxy(function() {
doubleTapStartTime=null;
//Trigger the event
$element.trigger('tap', [event.target]);
//Fire the callback
if(options.tap) {
ret = options.tap.call($element, event, event.target);
}
}, this), options.doubleTapThreshold );

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post