Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.2.0 CE M3
-
Fix Version/s: 6.2.0 CE M3
-
Component/s: UI, UI > JavaScript & CSS
-
Labels:
-
Similar Issues:
Description
Recently introduced into Javascript 1.8.5 is a native method "bind". It "Creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function was called." – Mozilla
This native method is overwriting the Liferay.Service's bind method.
Notes:
- It applies to Liferay.Service.bind because Liferay.Service is a function.
- It does not apply to A.bind because A is an Object.
- It only effects 6.2.x as the earlier branches don't have Service.bind in liferay.js
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/bind
Issue Links
- causes
-
LPS-31477
Document Library's Upload Multiple Documents exception while invoking JSON web service
-
- is duplicated by
-
LPS-31313
Clicking Add Attachments in a wiki throws a java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.Map
-
-
LPS-31453
Tags - Entering a tag throws a Class Cast Exception
-
- is related to
-
AUI-815
A.Lang.toString being overwritten by javascript native toString method
-
