Explorar o código

PlatformInterface: API changes, remove worker class inst var.

Herbert Vojčík %!s(int64=9) %!d(string=hai) anos
pai
achega
a0ed512c4b
Modificáronse 3 ficheiros con 12 adicións e 4 borrados
  1. 12 1
      API-CHANGES.txt
  2. 0 1
      src/Platform-Services.js
  3. 0 2
      src/Platform-Services.st

+ 12 - 1
API-CHANGES.txt

@@ -1,8 +1,10 @@
 0.14.14:
 
 * InterfacingObject >> ajax: deprecated
-* BrowserInterface >> ajax: deprecated
 * PlatformInterface class >> ajax: deprecated
+* PlatformInterface class >> alert:/confirm:/prompt:[default:] deprecated
+* Class BrowserInterface removed
+* Class Terminal, BrowserTerminal added
 
 + Environment >>
   + renamePackage:to:
@@ -10,6 +12,15 @@
   + newXhr
 + PlatformInterface class >>
   + newXhr
++ Terminal >>
+  + alert:
+  + confirm:
+  + prompt:
+  + prompt:default:
+
+- PlatformInterface class >>
+  - initialize
+  - setWorker:
 
 
 0.14.12:

+ 0 - 1
src/Platform-Services.js

@@ -1511,7 +1511,6 @@ $core.addClass('PlatformInterface', $globals.Object, [], 'Platform-Services');
 $globals.PlatformInterface.comment="I am single entry point to UI and environment interface.\x0aMy `initialize` tries several options (for now, browser environment only) to set myself up.\x0a\x0a## API\x0a\x0a    PlatformInterface alert: 'Hey, there is a problem'.\x0a    PlatformInterface confirm: 'Affirmative?'.\x0a    PlatformInterface prompt: 'Your name:'.\x0a\x0a    PlatformInterface ajax: #{\x0a        'url' -> '/patch.js'. 'type' -> 'GET'. dataType->'script'\x0a    }.";
 //>>excludeEnd("ide");
 
-$globals.PlatformInterface.klass.iVarNames = ['worker'];
 $core.addMethod(
 $core.method({
 selector: "ajax:",

+ 0 - 2
src/Platform-Services.st

@@ -359,8 +359,6 @@ My `initialize` tries several options (for now, browser environment only) to set
         'url' -> '/patch.js'. 'type' -> 'GET'. dataType->'script'
     }.!
 
-PlatformInterface class instanceVariableNames: 'worker'!
-
 !PlatformInterface class methodsFor: 'accessing'!
 
 globals