Question related to Object.extendsObject()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 09:12 AM
HI ALL,
I have gone through the prototype js docs.,but there is no function "extendObject()" defined for Object.
Object.extendsObject();
Please tell me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 09:31 AM
I believe that this is a custom Service-now function that they added to the base Javascript 'Object'. It behaves slightly different then Prototypes extend (and summarily breaks some things). For example, if the object you are extending has a 'name' property, it does not work in the extended object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 06:02 PM
is it documented any where
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 07:26 PM
Hi Alakhya,
Its a wrapper method to prototypeJS Class.create
Open console and type object.extendObject in any servicenow opened window.
You will see function definition
function () {
return Class.create.apply(null, arguments).prototype;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 07:28 PM
Can you please tell where i can see in the console.
I checked but i did not find