From f6e6e52871c84632062a522c3071b237ba626466 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 25 Feb 2014 14:43:44 +0000
Subject: [PATCH] Issue #2179655 followup by droplet: JS file validation
 broken.

---
 core/modules/file/file.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/core/modules/file/file.js b/core/modules/file/file.js
index 70241a181269..d10f6e1d92c1 100644
--- a/core/modules/file/file.js
+++ b/core/modules/file/file.js
@@ -7,7 +7,7 @@
  * prevents separate file fields from accidentally uploading files).
  */
 
-(function ($) {
+(function ($, Drupal) {
 
   "use strict";
 
@@ -17,7 +17,6 @@
   Drupal.behaviors.fileValidateAutoAttach = {
     attach: function (context, settings) {
       var $context = $(context);
-      var validateExtension = Drupal.file.validateExtension;
       var elements;
 
       function initFileValidation (selector) {
@@ -33,7 +32,6 @@
     },
     detach: function (context, settings, trigger) {
       var $context = $(context);
-      var validateExtension = Drupal.file.validateExtension;
       var elements;
 
       function removeFileValidation (selector) {
@@ -195,4 +193,4 @@
     }
   };
 
-})(jQuery);
+})(jQuery, Drupal);
-- 
GitLab