diff Lib/IMPL/DOM/Node.pm @ 6:e2cd73ccc5bd

DOM In development
author Sergey
date Fri, 14 Aug 2009 16:14:13 +0400
parents e59f44f75f20
children 94d47b388442
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Node.pm	Thu Aug 13 17:33:18 2009 +0400
+++ b/Lib/IMPL/DOM/Node.pm	Fri Aug 14 16:14:13 2009 +0400
@@ -19,14 +19,13 @@
     public _direct property nodeValue => prop_all;
     public _direct property childNodes => { get => \&_getChildNodes };
     public _direct property parentNode => prop_get ;
-    private _direct property _propertyMap => prop_all;
+    private _direct property _propertyMap => prop_get ;
 }
 
 sub CTOR {
     my ($this,$name) = @_;
     
     $this->nodeName($name) or die new IMPL::InvalidArgumentException("A name is required");
-    $this->_propertyMap({});
 }
 
 sub insertNode {
@@ -104,9 +103,9 @@
     
     if (@_) {
         # set
-        return $this->_propertyMap->{$name} = shift;
+        return $this->{$_propertyMap}{$name} = shift;
     } else {
-        return $this->_propertyMap->{$name};
+        return $this->{$_propertyMap}{$name};
     }
 }