Browse Source

Export using 'slots:' API.

Herby Vojčík 5 years ago
parent
commit
1ebb830c1d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/DOMite-Tests.st
  2. 1 1
      src/DOMite.st

+ 1 - 1
src/DOMite-Tests.st

@@ -1,6 +1,6 @@
 Smalltalk createPackage: 'DOMite-Tests'!
 TestCase subclass: #DOMiteTest
-	instanceVariableNames: 'fixtureDiv'
+	slots: {#fixtureDiv}
 	package: 'DOMite-Tests'!
 
 !DOMiteTest methodsFor: 'fixture'!

+ 1 - 1
src/DOMite.st

@@ -1,7 +1,7 @@
 Smalltalk createPackage: 'DOMite'!
 (Smalltalk packageAt: 'DOMite' ifAbsent: [ self error: 'Package not created: DOMite' ]) imports: {'amber/core/Platform-DOM'}!
 ProtoStream subclass: #Domite
-	instanceVariableNames: 'element reference'
+	slots: {#element. #reference}
 	package: 'DOMite'!
 !Domite commentStamp!
 I am (hopefully thin) wrapper around the notion of "cursor in a page".