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
There are cases, when ViewModels are too complex and have inheritance. So hasOwnProperty would return wrong data (null in most cases)
// Get the variable from the contextif(object.hasOwnProperty(key)){value=object[key];}elseif(object.hasOwnProperty("get"+capitalize(key))){value=object["get"+capitalize(key)];}elseif(object.hasOwnProperty("is"+capitalize(key))){value=object["is"+capitalize(key)];}else{value=null;}// -->// Get the variable from the contextif(keyinobject){value=object[key];}elseif(object[("get"+capitalize(key)]){value=object["get"+capitalize(key)];}elseif(object["is"+capitalize(key)]){value=object["is"+capitalize(key)];}else{value=null;}
The text was updated successfully, but these errors were encountered:
There are cases, when ViewModels are too complex and have inheritance. So
hasOwnProperty
would return wrong data (null
in most cases)The text was updated successfully, but these errors were encountered: