title: Tooltipster not displaying for last array item
body: <p>I have a simple MVC program that passes a list of user to my view, and inside the view i've looped through the array and assigned each users name to title attribute in an anchor tag. I'm using the tool tipster plugin to display the title(users name) when a user hovers over each link. However, for some reason the last item from the array is not assigned a 'tooltipstered' class.</p>
  
  <p>html</p>
  
  <pre><code>    &lt;div class="map" style="height: 1114px; width:960px; position:relative; margin:0 auto; background: url('/Content/MAP.png') no-repeat top center;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>javascript</p>
  
  <pre><code> $(function() {
  
          var allData = @Html.Raw(@JsonConvert.SerializeObject(Model.AllDeskData));
  
          var datatest;
  
          function getDesks(coordsArr) {
              for (var i = 0; i &lt; coordsArr.length; i++) {
                  var element = $("&lt;a href='#' class='deskBtn tooltip' title='" + coordsArr[i].Name + "' data-name='" + coordsArr[i].UserName + "'&gt;&lt;/a&gt;");
  
                  $('.tooltip').tooltipster();
  
                  $(element).on('click', function() {
                      var user = $(this).attr("data-name");
                      $.ajax({
                          url: "/Home/GetUserData",
                          type: "GET",
                          data: { user: user },
                          success: function(data) {
                              //console.log(data.photos[0].value);
                              $(".desk-info-box").animate({
                                  "margin-top": "0px"
                              }, 400);
                              $(".map .overlay").fadeIn(300);
                              $(".desk-info-data .name").text(data.displayName);
                              $(".desk-info-data .followers").text("who has " + data.followerCount + " followers");
                              $(".desk-info-data .email").text("email: " + data.jive.username + ".");
                              $(".desk-img").css({ 
                                  'background-image' : 'url(' + '/Content/gopi_desk.jpg' + ')',
                                  'background-size' : '100% 260px',
                                  'background-repeat' : 'no-repeat'
                              });
                              $(".user-image").attr("src",data.photos[0].value);
                          }
                      });
  
                  });
  
                  $(".hide-detail").on("click",function(){
                      $(".desk-info-box").animate({
                          "margin-top": "-425px"
                      }, 400);
                  });
  
  
                  $(element).css({
                      "top": coordsArr[i].DeskYCoord,
                      "left": coordsArr[i].DeskXCoord
                  }).appendTo(".map");
              }
          }
  
          getDesks(allData);
  
          /* $(".deskBtn").on("click", function() {
  
          });*/
  
      });
  </code></pre>
  
  <p>I can't understand why the last item would not have that class assigned to it.   </p>