Browse Source

Cleaner HTMLCanvas class >> onJQuery:.

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

+ 3 - 4
src/Web.js

@@ -2771,9 +2771,8 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1;
-$1=$self._basicNew();
+$1=$self._new();
 $recv($1)._initializeFromJQuery_(aJQuery);
-$recv($1)._initialize();
 return $recv($1)._yourself();
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"onJQuery:",{aJQuery:aJQuery})});
@@ -2781,11 +2780,11 @@ return $recv($1)._yourself();
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aJQuery"],
-source: "onJQuery: aJQuery\x0a\x09^ self basicNew\x0a\x09\x09initializeFromJQuery: aJQuery;\x0a\x09\x09initialize;\x0a\x09\x09yourself",
+source: "onJQuery: aJQuery\x0a\x09^ self new\x0a\x09\x09initializeFromJQuery: aJQuery;\x0a\x09\x09yourself",
 referencedClasses: [],
 //>>excludeEnd("ide");
 pragmas: [],
-messageSends: ["initializeFromJQuery:", "basicNew", "initialize", "yourself"]
+messageSends: ["initializeFromJQuery:", "new", "yourself"]
 }),
 $globals.HTMLCanvas.a$cls);
 

+ 1 - 2
src/Web.st

@@ -495,9 +495,8 @@ video
 !HTMLCanvas class methodsFor: 'instance creation'!
 
 onJQuery: aJQuery
-	^ self basicNew
+	^ self new
 		initializeFromJQuery: aJQuery;
-		initialize;
 		yourself
 ! !