drupal variables custom module and views
in your drupal_add_js, you are setting 1 variable many times. (Drupal.settings.myModule.nid). So the last one will be what this is set to.
You could add these nids to an array in Drupal.settings.myModule but then you would still need a reference from anchor in the views row that maps to the appropriate array index in your Drupal.settings.myModule array.  

I think the best / easiest way to get what you want would be to set a data attribute in your views anchor using a token of the current rows nid.
Also, set it up as a class instead of an id, so you don't have the same id multiple times.
eg. 

&lt;a class="nid-button" data-nid="[node:nid]" href="#"Testing!!!&lt;/a&gt;


Then in your javascript you would just need to use this data attribute.  

(function ($) {
  Drupal.behaviors.myModule = {
    attach: function (context, settings) {

      jQuery(".nid-button", context).bind('click', function(e) {
        alert($(this).data('nid'));
      });
    }
  };
}(jQuery));


Doing it this way you don't even need to set any settings variables, instead it is saved on the anchor itself.