silverstripe-framework/admin
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
..
client Don't use Object.freeze on functions (fixes #5473) 2016-05-09 21:19:43 +12:00
code API Add CSRF to Campaign delete 2016-05-09 17:33:10 +12:00
templates Merge 3 into master 2016-04-29 17:50:55 +12:00
tests API LeftAndMain::menu_title can be overridden (#5423) 2016-05-02 20:57:43 +12:00
thirdparty API Replace baked-in and modified Chosen 0.9.8 with npm'ed in Chosen 1.5.1 2016-04-14 10:45:39 +12:00
_config.php FIX: Renaming to HTMLEditorConfig. 2016-05-06 14:16:34 +12:00
.gitignore MINOR Removing executable flag from all files (thanks miiihi) 2011-09-18 22:04:02 +02:00