       $(nodes).each (index, node) ->
         $node = $(this)
         $node.attr "id", "page-" + (++newPageCount) unless $node.attr("id")
-        
+
         # Remove any existing instances
         $("#" + $node.attr("id")).remove()
 


      fn: (e, params) =>
        animation = getAnimation(params.$el)
        
        # Internal href
        params.$el.addClass "active"
        @goTo $(params.hash).data("referrer", params.$el), animation, params.$el.hasClass("reverse")

        @goTo $(location.hash), @settings.defaultAnimation

      return

    isExternalLink = ($el) ->
      $el.attr("target") is "_blank" or $el.attr("rel") is "external" or $el.is("a[href^=\"http://maps.google.com\"], a[href^=\"mailto:\"], a[href^=\"tel:\"], a[href^=\"javascript:\"], a[href*=\"youtube.com/v\"], a[href*=\"youtube.com/watch\"]")

    getAnimation = ($el) =>
      for animation in animations
        if $el.is(animation.selector)
