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:
committed by
jenkins-bot
parent
c300951890
commit
9c0c918bab
@@ -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' )
|
||||
|
||||
Reference in New Issue
Block a user