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.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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