Browse Source

Fix class doc.

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

+ 1 - 1
src/Web.js

@@ -2739,7 +2739,7 @@ $globals.HTMLCanvas);
 
 $core.addClass("TagBrush", $globals.Object, ["canvas", "element"], "Web");
 //>>excludeStart("ide", pragmas.excludeIdeData);
-$globals.TagBrush.comment="I am a brush for building a single DOM element (which I hold onto).\x0a\x0a## API\x0a\x0a1. Nesting\x0a\x0a    Use `#with:` to nest tags. `#with:` can take aString, `TagBrush` instance, a `Widget` or block closure as parameter.\x0a\x0a    Example: `aTag with: aString with: aCanvas div`\x0a\x0a2. Events\x0a\x0a    The `events` protocol contains all methods related to events (delegating event handling to jQuery).\x0a\x0a    Example: `aTag onClick: [ window alert: 'clicked' ]`\x0a\x0a3. Attributes\x0a\x0a    The `attribute` protocol contains methods for attribute manipulation.\x0a\x0a    Example: `aTag at: 'value' put: 'hello world'`\x0a\x0a4. Raw access and jQuery\x0a\x0a    The `#asDomNode` method can be used to access to JavaScript DOM element object.\x0a\x0a    Example: `aTag asDomNode cssStyle`\x0a\x0a    Use `#asJQuery` to access to the receiver converted into a jQuery object.\x0a\x0a    Example: `aTag asJQuery css: 'color' value: 'red'`";
+$globals.TagBrush.comment="I am a brush for building a single DOM element (which I hold onto).\x0a\x0a## API\x0a\x0a1. Nesting\x0a\x0a    Use `#with:` to nest tags. `#with:` can take aString, `TagBrush` instance, a `Widget` or block closure as parameter.\x0a\x0a    Example: `aTag with: aString with: aCanvas div`\x0a\x0a2. Events\x0a\x0a    The `events` protocol contains all methods related to events.\x0a\x0a    Example: `aTag onClick: [ window alert: 'clicked' ]`\x0a\x0a3. Attributes\x0a\x0a    The `attribute` protocol contains methods for attribute manipulation.\x0a\x0a    Example: `aTag at: 'value' put: 'hello world'`\x0a\x0a4. Raw access and jQuery\x0a\x0a    The `#asDomNode` method can be used to access to JavaScript DOM element object.\x0a\x0a    Example: `aTag asDomNode cssStyle`\x0a\x0a    With 'Web-JQuery' package there is `#asJQuery` to access to the receiver converted into a jQuery object.\x0a\x0a    Example: `aTag asJQuery css: 'color' value: 'red'`";
 //>>excludeEnd("ide");
 $core.addMethod(
 $core.method({

+ 2 - 2
src/Web.st

@@ -502,7 +502,7 @@ I am a brush for building a single DOM element (which I hold onto).
 
 2. Events
 
-    The `events` protocol contains all methods related to events (delegating event handling to jQuery).
+    The `events` protocol contains all methods related to events.
 
     Example: `aTag onClick: [ window alert: 'clicked' ]`
 
@@ -518,7 +518,7 @@ I am a brush for building a single DOM element (which I hold onto).
 
     Example: `aTag asDomNode cssStyle`
 
-    Use `#asJQuery` to access to the receiver converted into a jQuery object.
+    With 'Web-JQuery' package there is `#asJQuery` to access to the receiver converted into a jQuery object.
 
     Example: `aTag asJQuery css: 'color' value: 'red'`!