From: ScottDowne Date: Thu, 23 Dec 2010 18:41:28 +0000 (-0500) Subject: [#159] tightened up twitter widget a bit more X-Git-Tag: v0.2~22^2~3^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8ab3bb3f851fe316c2643595b913453d08037c55;p=popcorn-js.git [#159] tightened up twitter widget a bit more --- diff --git a/plugins/twitter/popcorn.twitter.js b/plugins/twitter/popcorn.twitter.js index ed1df8f..ba4bcbe 100644 --- a/plugins/twitter/popcorn.twitter.js +++ b/plugins/twitter/popcorn.twitter.js @@ -61,7 +61,6 @@ hash = /^#/.test( src ), widgetOptions = { version: 2, - type: ( profile ? 'profile' : 'search' ), id: options.container.getAttribute( 'id' ), // use this id to connect it to the div rpp: 30, width: width, @@ -93,10 +92,13 @@ // create widget if ( profile ) { + widgetOptions.type = "profile"; + new TWTR.Widget( widgetOptions ).render().setUser( src ).start(); } else if ( hash ) { + widgetOptions.type = "search"; widgetOptions.search = src; widgetOptions.subject = src;