|
@@ -69,4 +69,76 @@ messageSends: []
|
|
|
}),
|
|
|
$globals.PlatformDom.klass);
|
|
|
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "newDocumentFragment",
|
|
|
+protocol: 'node creation',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+
|
|
|
+return document.createDocumentFragment();
|
|
|
+return self;
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"newDocumentFragment",{},$globals.PlatformDom.klass)});
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: [],
|
|
|
+source: "newDocumentFragment\x0a<inlineJS: 'return document.createDocumentFragment()'>",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.PlatformDom.klass);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "newElement:",
|
|
|
+protocol: 'node creation',
|
|
|
+fn: function (aString){
|
|
|
+var self=this;
|
|
|
+
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+
|
|
|
+return document.createElement(aString);
|
|
|
+return self;
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"newElement:",{aString:aString},$globals.PlatformDom.klass)});
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: ["aString"],
|
|
|
+source: "newElement: aString\x0a<inlineJS: 'return document.createElement(aString)'>",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.PlatformDom.klass);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "newTextNode:",
|
|
|
+protocol: 'node creation',
|
|
|
+fn: function (aString){
|
|
|
+var self=this;
|
|
|
+
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+
|
|
|
+return document.createTextNode(aString);
|
|
|
+return self;
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"newTextNode:",{aString:aString},$globals.PlatformDom.klass)});
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: ["aString"],
|
|
|
+source: "newTextNode: aString\x0a<inlineJS: 'return document.createTextNode(aString)'>",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.PlatformDom.klass);
|
|
|
+
|
|
|
});
|