Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Odd prototype issues
I have extended JavaScript using prototype.
I have them in a common library like:
String.prototype.csTrimString = function() {...};
Date.prototype.csCompareTo = function() {...};
Object.prototype.csIsEmpty = function() {...};
Oddly, when I load a sales transaction in IE (Quirks mode) I get an error like
csIsEmpty_machine is undefined.
If I comment out the prototype csIsEmpty and reload, I get:
csCompareTo_machine is undefined
And so on for every one I comment out, the last prototype in the script file gets the *_machine undefined.
The error is generating in the NLAPI.js script and apparently taking all prototypes and appending _machine for whatever reason -- I can't tell.
0