- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2015 05:56 AM
When you create a new script include, the system automatically adds some code to the Script field as soon as you give your script include a name. The second line from the bottom looks like this:
type: 'your_script_include_name'
What is the purpose of this 'type'? What is the impact of leaving this line out? I can see that many out-of-box script includes do not have it. Thanks.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2015 07:04 AM
It allows you to call obj.type and find out what type the object is 🙂
Leaving it out on new Script Includes shouldn't have an impact unless you write code that expects it

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2015 06:05 AM
Maybe the answer lies in 'prototype' ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2015 07:04 AM
It allows you to call obj.type and find out what type the object is 🙂
Leaving it out on new Script Includes shouldn't have an impact unless you write code that expects it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2015 11:24 AM
Thanks, Andrew. I knew I was missing something very simple.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/