diff -r 7c1d08cf6956 -r 4da0a5740b6c src/widgets/Tweet.js --- a/src/widgets/Tweet.js Fri Sep 14 10:38:04 2012 +0900 +++ b/src/widgets/Tweet.js Mon Sep 17 00:17:06 2012 +0900 @@ -66,7 +66,7 @@ IriSP.Widgets.Tweet.prototype.draw = function() { this.renderTemplate(); - this.bindPopcorn("IriSP.Tweet.show","show"); + this.onMdpEvent("Tweet.show","show"); this.pinned = this.pin_at_start; var _this = this; this.$.find(".Ldt-Tweet-Pin").click(function() { @@ -170,7 +170,7 @@ this.$.find(".Ldt-Tweet-Retweet").attr("href", "https://twitter.com/intent/retweet?tweet_id=" + _tweet.source.id_str); this.$.find(".Ldt-Tweet-Reply").attr("href", "https://twitter.com/intent/tweet?in_reply_to=" + _tweet.source.id_str); this.$.find(".Ldt-Tweet-Original").attr("href", "https://twitter.com/" + _tweet.source.user.screen_name + "/status/" + _tweet.source.id_str); - this.player.popcorn.trigger("IriSP.Annotation.minimize"); + this.player.trigger("Annotation.minimize"); this.$.slideDown(); this.cancelTimeout(); if (!this.pinned) { @@ -182,7 +182,7 @@ } IriSP.Widgets.Tweet.prototype.hide = function() { - this.player.popcorn.trigger("IriSP.Annotation.maximize"); + this.player.trigger("Annotation.maximize"); this.$.slideUp(); this.cancelTimeout(); }