jQuery datatable is throwing error when i activate locker service enter image description here


Please open a support case on this with specific repro details, specific c library versions, etc and let me know the case ID here. Would you also provide the same repro details here so we can get a jump on investigating it?

  • Datatable Library :1.10.10 jQuery JavaScript Library v2.2.4 – user3292975 Jun 9 '16 at 15:31
  • if u put simple code in lightining component var a = new Option(2,3); its throwing same error one locker service is active – user3292975 Jun 9 '16 at 15:31
  • Ah - I see - developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/… - a bit antiquated and non standard but a de facto standard. Option ctor is not currently supported but we can add it for legacy reasons. – Doug Chasman Jun 9 '16 at 15:43
  • Hi Daugh thanks for your response,can u provide any official document from salesforce which clearly tell us currently Option Object is not supporting but in future its going to support which help us to take decision regarding my application which is going to be release. – user3292975 Jun 9 '16 at 16:12
  • We will be supporting it. You should be able to use the already supported modern alternative of document.createElement("option") – Doug Chasman Jun 10 '16 at 23:53

@Doug Chasman : We are facing the same issue. Thank you very much for your quick help. But the same thing works with LockerService prerelease orgs. We see the problem only when we activate LockerService in existing orgs (tested in Sandbox only) as the main release is scheduled this weekend.

Also, I appreciate if you can help us with any alternate solution for the time being. Any ETA to add the Option ctor.

  • This issue will happen in any org where the components are running in LS and there are multiple scenarios for this - the org's where it is working are grandfathered or running managed components etc. – Doug Chasman Jun 12 '16 at 4:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.