forked from platypush/platypush
Made Types.objectsEqual method more robust against null input
This commit is contained in:
parent
71a3481560
commit
2b5596820b
9 changed files with 11 additions and 7 deletions
|
@ -1 +1 @@
|
||||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" type="module" src="/static/js/chunk-vendors.95bedba1.js"></script><script defer="defer" type="module" src="/static/js/app.027226cc.js"></script><link href="/static/css/chunk-vendors.0fcd36f0.css" rel="stylesheet"><link href="/static/css/app.aa0132dc.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.79dede0c.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.a7f221b9.js" nomodule></script></head><body><noscript><strong>We're sorry but platypush doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" type="module" src="/static/js/chunk-vendors.95bedba1.js"></script><script defer="defer" type="module" src="/static/js/app.d0179f42.js"></script><link href="/static/css/chunk-vendors.0fcd36f0.css" rel="stylesheet"><link href="/static/css/app.aa0132dc.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.79dede0c.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.d0b74440.js" nomodule></script></head><body><noscript><strong>We're sorry but platypush doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/app-legacy.d0b74440.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/app-legacy.d0b74440.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
platypush/backend/http/webapp/dist/static/js/app.d0179f42.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/app.d0179f42.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/app.d0179f42.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/app.d0179f42.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -42,6 +42,10 @@ export default {
|
||||||
if (typeof(a) !== 'object' || typeof(b) !== 'object')
|
if (typeof(a) !== 'object' || typeof(b) !== 'object')
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
if (a == null || b == null) {
|
||||||
|
return a == null && b == null
|
||||||
|
}
|
||||||
|
|
||||||
for (const p of Object.keys(a || {})) {
|
for (const p of Object.keys(a || {})) {
|
||||||
switch(typeof(a[p])) {
|
switch(typeof(a[p])) {
|
||||||
case 'object':
|
case 'object':
|
||||||
|
|
Loading…
Reference in a new issue