view Lib/DOM.pm @ 159:f8de52d3c112

IMPL::Test::Unit minor changes
author wizard
date Mon, 27 Dec 2010 01:37:44 +0300
parents 16ada169ca75
children
line wrap: on
line source

package DOM;
require DOM::Site;
use Common;

my $GlobalSite;

sub Site {
    my $self = shift;
    
    $GlobalSite = construct DOM::Site if not $GlobalSite;
    return $GlobalSite;
}

sub Cleanup {
    $GlobalSite->Dispose if $GlobalSite;
    undef $GlobalSite;
}

1;