silverstripe-framework/admin/client
Ingo Schommer 984d7c1cf6 Don't use Object.freeze on functions (fixes #5473)
We're not using it for any other props passed to ReactJS components,
so there's no reason to do it here. Props are immutable by convention.
While it would be nice to enforce this, its too common to pass through
function objects which aren't supported by IE's Object.freeze().

IE isn't following the spec on how to handle Object.freeze(function() {}).
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze#Notes
> In ES6, a non-object argument will be treated as if it was a  frozen ordinary object, simply return it.

MS docs on https://msdn.microsoft.com/en-us/subscriptions/downloads/ff806186(v=vs.94).aspx
> If the object argument is not an object, a TypeError exception is thrown.
2016-05-09 21:19:43 +12:00
..
dist Don't use Object.freeze on functions (fixes #5473) 2016-05-09 21:19:43 +12:00
lang API Moved frontend assets into admin/client/ 2016-04-20 21:13:10 +12:00
src Don't use Object.freeze on functions (fixes #5473) 2016-05-09 21:19:43 +12:00