Use _.isError in _.attempt docs and _.template.

This commit is contained in:
John-David Dalton
2014-07-07 15:21:55 -07:00
parent af5ae8d656
commit 479a7e441d
2 changed files with 65 additions and 65 deletions

View File

@@ -8186,7 +8186,7 @@
// provide the compiled function's source by its `toString` method or
// the `source` property as a convenience for inlining compiled templates
result.source = source;
if (result instanceof Error) {
if (isError(result)) {
throw result;
}
return result;
@@ -8402,7 +8402,7 @@
* return document.querySelectorAll(selector);
* });
*
* if (elements instanceof Error) {
* if (_.isError(elements)) {
* elements = [];
* }
*/