mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix Template.api.{call,apply} conflicting with methods in docs, brekaing IE
This commit is contained in:
@@ -219,7 +219,7 @@ kind of error that a server will send to the client. If a method
|
||||
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.
|
||||
@@ -267,7 +267,7 @@ invoking their stub versions that update the local cache, instead of
|
||||
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.
|
||||
|
||||
@@ -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",
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user