[Jifty-commit] jifty branch, master, updated. 86faba210ba00f5d4589b0c1be7e22cc405981a1

Jifty commits jifty-commit at lists.jifty.org
Wed Jan 6 14:57:08 EST 2010


The branch, master has been updated
       via  86faba210ba00f5d4589b0c1be7e22cc405981a1 (commit)
      from  86515c116edba0d1ae170c40703c7850231950b6 (commit)

Summary of changes:
 lib/Jifty/Plugin/SQLQueries.pm |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 86faba210ba00f5d4589b0c1be7e22cc405981a1
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Jan 6 14:57:05 2010 -0500

    The 'weaken' is unnecessessary

diff --git a/lib/Jifty/Plugin/SQLQueries.pm b/lib/Jifty/Plugin/SQLQueries.pm
index dd80cc5..69c5493 100644
--- a/lib/Jifty/Plugin/SQLQueries.pm
+++ b/lib/Jifty/Plugin/SQLQueries.pm
@@ -22,10 +22,8 @@ sub init {
     $self->explain($opts{explain});
     $self->stacktrace($opts{stacktrace});
 
-    my $weakself = $self;
-    Scalar::Util::weaken( $weakself );
     Jifty->add_trigger(
-        post_init => sub { $weakself->post_init(@_) }
+        post_init => sub { $self->post_init(@_) }
     );
 }
 

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list