Skip to content

Commit

Permalink
removes all errors
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer committed Mar 27, 2015
1 parent 64eec80 commit 138b0c6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 29 deletions.
52 changes: 25 additions & 27 deletions component/component.md
Expand Up @@ -9,33 +9,6 @@
@description Create widgets that use a template, a view-model
and custom tags.

@warning {2.1} To pass data from the viewModel, you must wrap your attribute

This comment has been minimized.

Copy link
@moschel

moschel May 3, 2015

Contributor

@justinbmeyer did you remove this warning intentionally? Or by mistake? Seems like we'd still want this there.

value with `{}`. In 3.0, [can.mustache]
will use [can.stache]'s method.

@signature `< TAG [ATTR-NAME=KEY|ATTR-VALUE] >`

Create an instance of a component on a particular
tag in a [can.mustache] template.

@param {String} TAG An HTML tag name that matches the [can.Component::tag tag]
property of the component.

@param {String} ATTR-NAME An HTML attribute name. Any attribute name is
valid. Any attributes added to the element are added as properties to the
component's [can.Component::viewModel viewModel].

@param {can.mustache.key} [ATTR-VALUE] Specifies the value of a property passed to
the component instance's [can.Component::viewModel viewModel]. By default `ATTR-VALUE`
values are looked up in the [can.view.viewModel can.mustache viewModel]. If the string value
of the `ATTR-NAME` is desired, this can be specified like:

ATTR-NAME: "@"

@param {can.mustache.key} [KEY] Specifies the value of a property passed to
the component instance's [can.Component::viewModel viewModel] that will be looked
up in the [can.view.Scope can.stache scope].

@signature `< TAG [ATTR-NAME="{KEY}|ATTR-VALUE"] >`

Create an instance of a component on a particular
Expand Down Expand Up @@ -64,6 +37,31 @@ up in the [can.view.Scope can.stache scope].
wrapped with `{}`, the string value of the attribute will be
set on the component's viewModel.

@signature `< TAG [ATTR-NAME=KEY|ATTR-VALUE] >`

Create an instance of a component on a particular
tag in a [can.mustache] template.

@param {String} TAG An HTML tag name that matches the [can.Component::tag tag]
property of the component.

@param {String} ATTR-NAME An HTML attribute name. Any attribute name is
valid. Any attributes added to the element are added as properties to the
component's [can.Component::viewModel viewModel].

@param {can.mustache.key} [ATTR-VALUE] Specifies the value of a property passed to
the component instance's [can.Component::viewModel viewModel]. By default `ATTR-VALUE`
values are looked up in the [can.view.viewModel can.mustache viewModel]. If the string value
of the `ATTR-NAME` is desired, this can be specified like:

ATTR-NAME: "@"

@param {can.mustache.key} [KEY] Specifies the value of a property passed to
the component instance's [can.Component::viewModel viewModel] that will be looked
up in the [can.view.Scope can.stache scope].



@body

## Use
Expand Down
2 changes: 1 addition & 1 deletion compute/async.md
Expand Up @@ -9,7 +9,7 @@ Create a compute that can set its value after the computed function has been cal

@param {*} The initial value of the compute.

@param {can.compute.asyncComputer} computed(currentValue, setValue) A function
@param {can.compute.asyncComputer} computed A function
that returns the current value of the compute and can optionally later call
its `setValue` callback to update the value.

Expand Down
2 changes: 1 addition & 1 deletion view/target/target.js
Expand Up @@ -37,7 +37,7 @@ steal("can/util", "can/view/elements.js",function(can, elements){
})();

/**
* @method cloneNode
* @function cloneNode
* @hide
*
* A custom cloneNode function to be used in browsers that properly support cloning
Expand Down

0 comments on commit 138b0c6

Please sign in to comment.