Browse Source

* TJSAttr is a descendent of TJSNode

michael 6 years ago
parent
commit
2553ef17ad
1 changed files with 19 additions and 16 deletions
  1. 19 16
      packages/rtl/web.pas

+ 19 - 16
packages/rtl/web.pas

@@ -42,21 +42,6 @@ Type
   TJSUIEvent = class;
   TJSUIEvent = class;
   TJSTouchEvent = Class;
   TJSTouchEvent = Class;
 
 
-  TJSAttr = class external name 'Attr' (TJSObject)
-  Private
-    fLocalName : String; external name 'localName';
-    fNameSpaceURI : String external name 'namespaceURI';
-    fPrefix : string; external name 'prefix';
-    fName : string; external name 'name';
-    fSpecified : Boolean; external name 'specified';
-  public
-    value : JSValue;
-    property localName : String Read fLocalName;
-    property namespaceURI : string Read fNameSpaceURI;
-    property prefix : string read fPrefix;
-    property name : string Read fName;
-    property specified : boolean Read fSpecified; // Useless, always true
-  end;
 
 
 
 
   { TEventListenerEvent }
   { TEventListenerEvent }
@@ -143,6 +128,7 @@ TEventListenerEvent = class external name 'EventListener_Event' (TJSObject)
     property previousSibling : TJSNode Read FPreviousSibling;
     property previousSibling : TJSNode Read FPreviousSibling;
   end;
   end;
 
 
+
   TJSNodeListCallBack = procedure (currentValue : TJSNode; currentIndex: NativeInt; list : TJSNodeList);
   TJSNodeListCallBack = procedure (currentValue : TJSNode; currentIndex: NativeInt; list : TJSNodeList);
   TJSNodeListEvent = procedure (currentValue : TJSNode; currentIndex: NativeInt; list : TJSNodeList) of object;
   TJSNodeListEvent = procedure (currentValue : TJSNode; currentIndex: NativeInt; list : TJSNodeList) of object;
   
   
@@ -156,7 +142,24 @@ TEventListenerEvent = class external name 'EventListener_Event' (TJSObject)
     Property length : NativeInt Read FLength;
     Property length : NativeInt Read FLength;
     Property Nodes [aIndex : NativeInt] : TJSNode Read item; default;
     Property Nodes [aIndex : NativeInt] : TJSNode Read item; default;
   end;
   end;
-  
+
+  TJSAttr = class external name 'Attr' (TJSNode)
+  Private
+    fLocalName : String; external name 'localName';
+    fNameSpaceURI : String external name 'namespaceURI';
+    fPrefix : string; external name 'prefix';
+    fName : string; external name 'name';
+    fSpecified : Boolean; external name 'specified';
+  public
+    value : JSValue;
+    property localName : String Read fLocalName;
+    property namespaceURI : string Read fNameSpaceURI;
+    property prefix : string read fPrefix;
+    property name : string Read fName;
+    property specified : boolean Read fSpecified; // Useless, always true
+  end;
+
+
   TJSNamedNodeMap = class external name 'NamedNodeMap'  (TJSObject)
   TJSNamedNodeMap = class external name 'NamedNodeMap'  (TJSObject)
   Public
   Public
     function getNamedItem(aName : string) : TJSAttr;
     function getNamedItem(aName : string) : TJSAttr;