Browse Source

Revert "PlatformDom >> newElement:namespace:"

This reverts commit 4bde1e23806bbdf753a016a43fb04dc0f519910d.
Herbert Vojčík 7 years ago
parent
commit
2a4cd8b4e3
3 changed files with 0 additions and 29 deletions
  1. 0 1
      API-CHANGES.txt
  2. 0 24
      src/Platform-DOM.js
  3. 0 4
      src/Platform-DOM.st

+ 0 - 1
API-CHANGES.txt

@@ -8,7 +8,6 @@
   + isDomNode:
   + newDocumentFragment
   + newElement:
-  + newElement:namespace:
   + newTextNode:
   + newCustomEvent:detail:
   + toArray:

+ 0 - 24
src/Platform-DOM.js

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

+ 0 - 4
src/Platform-DOM.st

@@ -23,10 +23,6 @@ newElement: aString
 <inlineJS: 'return document.createElement(aString)'>
 !
 
-newElement: aString namespace: anotherString 
-<inlineJS: 'return document.createElementNS(anotherString,aString)'>
-!
-
 newTextNode: aString
 <inlineJS: 'return document.createTextNode(aString)'>
 ! !