From 8ab3bb3f851fe316c2643595b913453d08037c55 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Thu, 23 Dec 2010 13:41:28 -0500 Subject: [PATCH] [#159] tightened up twitter widget a bit more --- plugins/twitter/popcorn.twitter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.43.0