title: Replacing the duplicate function for the 'unique' plugin
body: <p>I am trying to write my own <a href="https://www.jstree.com/api/#/?q=dup&amp;f=$.jstree.defaults.unique.duplicate" rel="nofollow">$.jstree.defaults.unique.duplicate</a> function and replace it. </p>
  
  <p>I tried doing so in the following jsFiddle (line: 68):</p>
  
  <pre class="lang-js prettyprint-override"><code>$.jstree.defaults.unique.duplicate = function(name, counter){
      return name + "_test";
  };
  </code></pre>
  
  <p>Steps to test: </p>
  
  <ol>
  <li>Select <code>Devices</code></li>
  <li>Create Node called Node1</li>
  <li>Create Another node under Devices called Node1
  It will use the jstree default method to replace it with the default node name vs what my function provides</li>
  </ol>
  
  <p><a href="http://jsfiddle.net/2mbq86at/" rel="nofollow">http://jsfiddle.net/2mbq86at/</a></p>
  
  <p>Am I doing something wrong? Thanks in advance.</p>