mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +01:00
Fix jquery4 deprecations (#610)
This commit is contained in:
parent
d420dd09d1
commit
9700e50974
@ -186,7 +186,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
* @param {Function} cb
|
||||
*/
|
||||
bindAttr: function(attr, cb) {
|
||||
if ($.isArray(attr)) {
|
||||
if (Array.isArray(attr)) {
|
||||
for (var i = 0, c = attr.length; i < c; i++) {
|
||||
this.bindAttr(attr[i], cb);
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
highlight(codeElement).removeClass('hljs');
|
||||
|
||||
// Show line numbers in a list
|
||||
if ($.isNumeric(firstLineNumber)) {
|
||||
if (!isNaN(parseFloat(firstLineNumber))) {
|
||||
var lineCount = code.split('\n').length;
|
||||
var $lineNumbers = $('<ul />').prependTo(pre);
|
||||
pre.children().addClass(csscls('numbered-code'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user