title: elFinder issues. Undefined is not a function error when trying to copy file
body: <p>I'm trying to implement <a href="http://elfinder.org/" rel="nofollow noreferrer">elFinder file manager</a>.</p>
  
  <p>This is what I've done.
  Included  files:</p>
  
  <pre><code>    $arr_css = array(
                "main.css",
                "jquery-ui.css",
                "elfinder.min.css",
                 "theme.css"
                );
      $arr_js = array(
                 "jquery.js",
                 "main.js",
                 "jquery-ui.js",
                 "elfinder.min.js",
                 "elfinder.ru.js"
                 );
  </code></pre>
  
  <p>(main.js and main.css are arrays used to create <code>&lt;link rel='stylesheet'&gt;</code> and <code>&lt;script type='text/javascript'&gt;</code>)</p>
  
  <p>In my main page there is a </p>
  
  <pre><code>&lt;div id='fileStructure'&gt;
      &lt;div id="elfinder"&gt; &lt;/div&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p>which I use to initialize elfinder:</p>
  
  <pre><code>$(document).ready(function() {
      var elf = $('#elfinder').elfinder({
          lang: 'ru',             // language (OPTIONAL)
          url : '/radio/elfinder-2.0-rc1/php/connector.php'  // connector URL (REQUIRED)
      }).elfinder('instance');            
  });
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/fZCJN.png" alt="enter image description here"></p>
  
  <p>This is, what I have now. It looks fine, I can create directories, files, can upload them. But when I try to copy it it says:</p>
  
  <pre><code>Uncaught TypeError: undefined is not a functionelfinder.min.js:2841 elFinder.commands.copy.execelfinder.min.js:1746 (anonymous function)elfinder.min.js:1706 (anonymous function)jquery.js:3058 jQuery.event.dispatchjquery.js:2676 jQuery.event.add.elemData.handle.eventHandle
  </code></pre>
  
  <p>The same mistake is on other actions like, cut remove and others.
  When I look in script I see that mistake is in string with</p>
  
  <pre><code>return a.each(this.files(b), function (a, b) {
                  if (!b.read || !b.phash) return !d.reject(["errCopy", b.name, "errPerm"])
              }), d.isRejected() ? d : d.resolve(c.clipboard(this.hashes(b))
  </code></pre>
  
  <p>I don't really understand why it is happening because structure isn't clear for me:</p>
  
  <pre><code>d = this
  b = a(b)
  </code></pre>
  
  <p>and a is parameter of main function of elfinder</p>
  
  <pre><code>(function (a) {
  </code></pre>
  
  <p>Anyone can help me to solve the problem? May be someone met similar issue? 
  <strong>UPDATE</strong></p>
  
  <pre><code>Uncaught TypeError: undefined is not a functionelfinder.min.js:2860 elFinder.commands.cut.execelfinder.min.js:1746 (anonymous function)elfinder.min.js:1706 (anonymous function)jquery.js:3058 jQuery.event.dispatchjquery.js:2676 jQuery.event.add.elemData.handle.eventHandle
  Uncaught TypeError: undefined is not a functionelfinder.min.js:4249 elFinder.commands.rm.execelfinder.min.js:1746 (anonymous function)elfinder.min.js:1706 (anonymous function)jquery.js:3058 jQuery.event.dispatchjquery.js:2676 jQuery.event.add.elemData.handle.eventHandle
  </code></pre>