(function(){

  var getPostTitle = document.getElementById( "blog-post-title" ).innerHTML,
      linkElement = document.getElementById( "tweet-this-post" ),
      getPostLink = window.location.href;

  linkElement.setAttribute( "href", getPostLink );

  $( linkElement ).on( "click", function( event ){

    event.preventDefault();

    var tweetedLink = this.getAttribute( "href" );

    window.open( "http://twitter.com/intent/tweet?url=" + tweetedLink + "&text=" + getPostTitle + "&via=kaidez&", "twitterwindow", "height=450, width=550, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0" );

  });

})();
@@ -1,20 +1,4 @@
-(function()%7B%0A%0A  
 var 
@@ -36,17 +36,16 @@
 entById(
- 
 %22blog-po
@@ -53,17 +53,16 @@
 t-title%22
- 
 ).innerH
@@ -66,20 +66,16 @@
 erHTML,%0A
-    
   linkEl
@@ -106,17 +106,16 @@
 entById(
- 
 %22tweet-t
@@ -127,16 +127,11 @@
 ost%22
- 
 ),%0A
-    
   ge
@@ -165,17 +165,16 @@
 .href;%0A%0A
- 
  linkEle
@@ -220,13 +220,10 @@
 );%0A%0A
-  
 $(
- 
 link
@@ -233,24 +233,16 @@
 ment
- 
 ).
-on( %22
 click
-%22, 
+(
 func
@@ -250,21 +250,17 @@
 ion(
- 
 event
- 
 )%7B%0A%0A
-  
   ev
@@ -282,18 +282,16 @@
 ult();%0A%0A
-  
   var tw
@@ -324,24 +324,20 @@
 ute(
- 
 %22href%22
- 
 );%0A%0A  
- 
- 
 wind
@@ -344,17 +344,16 @@
 ow.open(
- 
 %22http://
@@ -548,21 +548,11 @@
 s=0%22
- );%0A%0A  %7D
 );%0A%0A%7D)
-()
 ;

update click to tweet sample 01 code (see message) * remove IIFE * change event binding from .on to .click *remove whitespace