Skip to content

Commit

Permalink
fix Template.api.{call,apply} conflicting with methods in docs, breka…
Browse files Browse the repository at this point in the history
…ing IE
  • Loading branch information
dgreensp committed Apr 5, 2012
1 parent 5d0388c commit 42f908a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/client/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ <h2 id="methods_header"><span>Methods</span></h2>
function throws a different exception, then it will be mapped to
`Meteor.Error(500, "Internal server error")` on the wire.

{{> api_box call}}
{{> api_box meteor_call}}

This is how to invoke a method. It will run the method on the server.
If a stub is available, it will also run the stub on the client.
Expand Down Expand Up @@ -267,7 +267,7 @@ <h2 id="methods_header"><span>Methods</span></h2>
their "real" versions that update the database (using credentials known
only to the server.)

{{> api_box apply}}
{{> api_box meteor_apply}}

`Meteor.apply` is just like `Meteor.call`, but it allows the
arguments to be passed as an array.
Expand Down
4 changes: 2 additions & 2 deletions docs/client/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Template.api.error = {
]
};

Template.api.call = {
Template.api.meteor_call = {
id: "meteor_call",
name: "Meteor.call(func, arg1, arg2, ... [, asyncCallback])",
locus: "Anywhere",
Expand All @@ -211,7 +211,7 @@ Template.api.call = {
]
};

Template.api.apply = {
Template.api.meteor_apply = {
id: "meteor_apply",
name: "Meteor.apply(name, params [, asyncCallback])",
locus: "Anywhere",
Expand Down

0 comments on commit 42f908a

Please sign in to comment.