Quellcode durchsuchen

Fix wrong protocol

Herbert Vojčík vor 9 Jahren
Ursprung
Commit
1e5351a318
2 geänderte Dateien mit 9 neuen und 7 gelöschten Zeilen
  1. 1 1
      src/DOMite.js
  2. 8 6
      src/DOMite.st

+ 1 - 1
src/DOMite.js

@@ -11,7 +11,7 @@ $globals.Domite.comment="I am (hopefully thin) wrapper around the notion of \x22
 $core.addMethod(
 $core.method({
 selector: "=",
-protocol: 'accessing',
+protocol: 'comparing',
 fn: function (aDomite){
 var self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);

+ 8 - 6
src/DOMite.st

@@ -54,12 +54,6 @@ in combination with `copy`, like
 
 !Domite methodsFor: 'accessing'!
 
-= aDomite
-	^ self class = aDomite class and: [
-		self element = aDomite element and: [
-			self reference = aDomite reference ]]
-!
-
 at: aString
 	^ self class fromElement: (self element querySelector: aString)
 !
@@ -98,6 +92,14 @@ reference: anObject
 	reference := anObject
 ! !
 
+!Domite methodsFor: 'comparing'!
+
+= aDomite
+	^ self class = aDomite class and: [
+		self element = aDomite element and: [
+			self reference = aDomite reference ]]
+! !
+
 !Domite methodsFor: 'deletion'!
 
 resetContents