Browse Source

Deprecate HTMLCanvas >> root:.

Herby Vojčík 4 years ago
parent
commit
e0c6f8abc9
2 changed files with 10 additions and 3 deletions
  1. 9 3
      src/Web.js
  2. 1 0
      src/Web.st

+ 9 - 3
src/Web.js

@@ -2040,17 +2040,23 @@ selector: "root:",
 protocol: "accessing",
 fn: function (aTagBrush){
 var self=this,$self=this;
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+return $core.withContext(function($ctx1) {
+//>>excludeEnd("ctx");
+$self._deprecatedAPI();
 $self.root=aTagBrush;
 return self;
-
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+}, function($ctx1) {$ctx1.fill(self,"root:",{aTagBrush:aTagBrush})});
+//>>excludeEnd("ctx");
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aTagBrush"],
-source: "root: aTagBrush\x0a\x09root := aTagBrush",
+source: "root: aTagBrush\x0a\x09self deprecatedAPI.\x0a\x09root := aTagBrush",
 referencedClasses: [],
 //>>excludeEnd("ide");
 pragmas: [],
-messageSends: []
+messageSends: ["deprecatedAPI"]
 }),
 $globals.HTMLCanvas);
 

+ 1 - 0
src/Web.st

@@ -27,6 +27,7 @@ root
 !
 
 root: aTagBrush
+	self deprecatedAPI.
 	root := aTagBrush
 ! !