title: $.unique with jQuery, not working for this
body: <p>I'm trying to understand where is my mistake,but can't see it right now, my js is valid and working with other html template : </p>
  
  <pre><code>//DATES : wrap the submenu by year
  var arr = $("#submenu a").map(function () {
  return $(this).attr('year');
  }).get();
  var results = $.unique(arr);
  var i;
  </code></pre>
  
  <p>alert(results);</p>
  
  <p>This works fine but not with the structure I made in this Fiddle : <a href="http://jsfiddle.net/moabi/c9nbu/" rel="nofollow">http://jsfiddle.net/moabi/c9nbu/</a>
  and I get as a result : year-2013,year-2012,year-2013
  not really unique, right ?!
  Thank you</p>