Browse Source

Revert "PlatformDom >> newXxx."

This reverts commit 5029ce4d676cd6d2f981d97682609960527eaae8.

# Conflicts:
#	API-CHANGES.txt
#	src/Platform-DOM.js
#	src/Platform-DOM.st
Herbert Vojčík 7 years ago
parent
commit
bcbd4f02ed
3 changed files with 0 additions and 87 deletions
  1. 0 3
      API-CHANGES.txt
  2. 0 72
      src/Platform-DOM.js
  3. 0 12
      src/Platform-DOM.st

+ 0 - 3
API-CHANGES.txt

@@ -6,9 +6,6 @@
 + PlatformDom class >>
   + isFeasible
   + isDomNode:
-  + newDocumentFragment
-  + newElement:
-  + newTextNode:
   + newCustomEvent:detail:
   + toArray:
 + CharacterArray >>

+ 0 - 72
src/Platform-DOM.js

@@ -93,78 +93,6 @@ messageSends: []
 }),
 $globals.PlatformDom.klass);
 
-$core.addMethod(
-$core.method({
-selector: "newDocumentFragment",
-protocol: 'node creation',
-fn: function (){
-var self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-return document.createDocumentFragment();
-return self;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"newDocumentFragment",{},$globals.PlatformDom.klass)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: [],
-source: "newDocumentFragment\x0a<inlineJS: 'return document.createDocumentFragment()'>",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: []
-}),
-$globals.PlatformDom.klass);
-
-$core.addMethod(
-$core.method({
-selector: "newElement:",
-protocol: 'node creation',
-fn: function (aString){
-var self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-return document.createElement(aString);
-return self;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"newElement:",{aString:aString},$globals.PlatformDom.klass)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["aString"],
-source: "newElement: aString\x0a<inlineJS: 'return document.createElement(aString)'>",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: []
-}),
-$globals.PlatformDom.klass);
-
-$core.addMethod(
-$core.method({
-selector: "newTextNode:",
-protocol: 'node creation',
-fn: function (aString){
-var self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-return document.createTextNode(aString);
-return self;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"newTextNode:",{aString:aString},$globals.PlatformDom.klass)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["aString"],
-source: "newTextNode: aString\x0a<inlineJS: 'return document.createTextNode(aString)'>",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: []
-}),
-$globals.PlatformDom.klass);
-
 $core.addMethod(
 $core.method({
 selector: "toArray:",

+ 0 - 12
src/Platform-DOM.st

@@ -13,18 +13,6 @@ toArray: aDomList
 
 newCustomEvent: aString detail: anObject
 <inlineJS: 'return new CustomEvent(aString, {detail: anObject})'>
-!
-
-newDocumentFragment
-<inlineJS: 'return document.createDocumentFragment()'>
-!
-
-newElement: aString
-<inlineJS: 'return document.createElement(aString)'>
-!
-
-newTextNode: aString
-<inlineJS: 'return document.createTextNode(aString)'>
 ! !
 
 !PlatformDom class methodsFor: 'testing'!