You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sap.ui.define(["sap/base/util/deepEqual","sap/base/util/each","sap/base/util/isPlainObject","sap/base/util/JSTokenizer","sap/base/util/merge","sap/base/util/now","sap/base/util/Properties","sap/base/util/uid","sap/base/util/Version","sap/ui/core/syncStyleClass","sap/base/util/ObjectPath"],(deepEqual,each,isPlainObject,JSTokenizer,merge,now,Properties,uid,Version,syncStyleClass,ObjectPath)=>{varareBothObjectsEqual=deepEqual({a:1,b:2},{a:1,b:2});each({name: "me",age: 32},function(sKey,oValue)console.log("key: "+sKey+", value: "+oValue);});each({name: "you",age: 42},function(sKey,oValue)console.log("key: "+sKey+", value: "+oValue);});varisObjectPlainObject=isPlainObject({});varparsedJS=JSTokenizer.parseJS("{name: 'me'}");varclone=merge({},{name: "me"});vartimestampsnumber=now();varprops=Properties.create({url: sap.ui.require.toUrl(sap.ui.require.toUrl("testdata/test.properties"))});varmyUid=uid();varv=Version("3.6.2");varv2=newVersion("3.6.2");myDialog=syncStyleClass("sapUiSizeCompact",this.getView(),myDialog);ObjectPath.set("name.lastname","Miller",{name: {firstname: "me"}});// in case object path used in `ObjectPath.get` does not exist, ObjectPath.create("name.firstname", myObject) has to be called beforevarmyFirstName=ObjectPath.get("name.firstname",0,{name: {firstname: "me"}});});
Note for jQuery.sap.extend: Without enforcing a deep copy while using true as first parameter a shallow copy is created. This is not supported by sap/base/util/merge. For shallow copies browser native Object.assign() might be used but null and undefined values are ignored.
The text was updated successfully, but these errors were encountered:
Missing autofix for methods related to jQuery.sap.* (Utils)
Methods related to
jQuery.sap.* (Utils)
are deprecated. Therefore an autofix should be offered by UI5 linter.Deprecated APIs:
Deprecated Usage
Recommended Usage
Note for
jQuery.sap.extend
: Without enforcing a deep copy while usingtrue
as first parameter a shallow copy is created. This is not supported bysap/base/util/merge
. For shallow copies browser nativeObject.assign()
might be used butnull
andundefined
values are ignored.The text was updated successfully, but these errors were encountered: