Replace jQuery.proxy() with Function.prototype.bind()

Also, one immediate invocation of jQuery.proxy() is replaced by
Function.prototype.call()

Change-Id: Ibbdbe6413793c113d4de1c67cfcb7d95676565b2
This commit is contained in:
petarpetkovic
2018-05-24 19:09:31 +02:00
committed by jenkins-bot
parent c300951890
commit 9c0c918bab
3 changed files with 20 additions and 20 deletions

View File

@@ -295,7 +295,7 @@
// Show common languages
quickList: self.getCommonLanguages( languages ),
noResultsTemplate: function () {
var $defaultTemplate = $.proxy( $.fn.lcd.defaults.noResultsTemplate, this )();
var $defaultTemplate = $.fn.lcd.defaults.noResultsTemplate.call( this );
// Customize the message
$defaultTemplate
.find( '.uls-no-results-found-title' )