[ticket/12542] Properly check if textarea is undefined or null

PHPBB3-12542
This commit is contained in:
Marc Alexander 2015-05-20 15:32:00 +02:00
parent 818df0ec68
commit b7a89187b5

View file

@ -1241,7 +1241,7 @@ phpbb.applyCodeEditor = function(textarea) {
* @param {object} textarea Textarea DOM object to apply editor to
*/
phpbb.showDragNDrop = function(textarea) {
if (textarea === 'undefined') {
if (textarea == null) {
return;
}