Quote machine opens to many tabs when you hit share?

Quote machine opens to many tabs when you hit share?
0

#1

I found something wrong with my quote machine… the more you press for a new quote the more tabs that open when you share it.


#2

Move the following code outside the newQuote function:

$("#tweetThis").click(function() { 
    window.open('https://twitter.com/intent/tweet?&text=' + currentQuote + " -Vincent van Gogh");
 });