Skip to content

Commit 3bd4428

Browse files
Fixed JSDoc annotations and textarea placeholder
1 parent 93f8186 commit 3bd4428

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

stacktrace.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338
sourceCache: {},
339339

340340
/**
341-
* @return the text from a given URL
341+
* @return {String} the text from a given URL
342342
*/
343343
ajax: function(url) {
344344
var req = this.createXMLHTTPObject();
@@ -359,7 +359,7 @@
359359
/**
360360
* Try XHR methods in order and store XHR factory.
361361
*
362-
* @return <Function> XHR function or equivalent
362+
* @return {XMLHttpRequest} XHR function or equivalent
363363
*/
364364
createXMLHTTPObject: function() {
365365
var xmlhttp, XMLHttpFactories = [
@@ -388,8 +388,8 @@
388388
* Given a URL, check if it is in the same domain (so we can get the source
389389
* via Ajax).
390390
*
391-
* @param url <String> source url
392-
* @return <Boolean> False if we need a cross-domain request
391+
* @param url {String} source url
392+
* @return {Boolean} False if we need a cross-domain request
393393
*/
394394
isSameDomain: function(url) {
395395
return typeof location !== "undefined" && url.indexOf(location.hostname) !== -1; // location may not be defined, e.g. when running from nodejs.
@@ -398,8 +398,8 @@
398398
/**
399399
* Get source code from given URL if in the same domain.
400400
*
401-
* @param url <String> JS source URL
402-
* @return <Array> Array of source code lines
401+
* @param url {String} JS source URL
402+
* @return {Array} Array of source code lines
403403
*/
404404
getSource: function(url) {
405405
// TODO reuse source from script tags?

test/functional/ExceptionLab.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<script>
103103
document.getElementById("userAgent").innerHTML = navigator.userAgent;
104104
</script>
105-
<textarea id="info">Info</textarea>
105+
<textarea id="info" placeholder="Data extracted from Error object"></textarea>
106106
<br />
107107
<button onclick="dumpExceptionError();" title="new Error()">Exception 1</button>
108108
<button onclick="dumpExceptionAnonymous();" title="Stack with anonymous function">Exception 2</button>

0 commit comments

Comments
 (0)