@@ -339,8 +339,6 @@ function addElement(elt, pInst, media) {
339
339
340
340
/**
341
341
* Creates a <div></div> element in the DOM with given inner HTML.
342
- * Appends to the container node if one is specified, otherwise
343
- * appends to body.
344
342
*
345
343
* @method createDiv
346
344
* @param {String } [html] inner HTML for element created
@@ -354,8 +352,6 @@ function addElement(elt, pInst, media) {
354
352
/**
355
353
* Creates a <p></p> element in the DOM with given inner HTML. Used
356
354
* for paragraph length text.
357
- * Appends to the container node if one is specified, otherwise
358
- * appends to body.
359
355
*
360
356
* @method createP
361
357
* @param {String } [html] inner HTML for element created
@@ -368,8 +364,6 @@ function addElement(elt, pInst, media) {
368
364
369
365
/**
370
366
* Creates a <span></span> element in the DOM with given inner HTML.
371
- * Appends to the container node if one is specified, otherwise
372
- * appends to body.
373
367
*
374
368
* @method createSpan
375
369
* @param {String } [html] inner HTML for element created
@@ -392,8 +386,6 @@ tags.forEach(function(tag) {
392
386
/**
393
387
* Creates an <img> element in the DOM with given src and
394
388
* alternate text.
395
- * Appends to the container node if one is specified, otherwise
396
- * appends to body.
397
389
*
398
390
* @method createImg
399
391
* @param {String } src src path or url for image
@@ -436,8 +428,6 @@ p5.prototype.createImg = function() {
436
428
437
429
/**
438
430
* Creates an <a></a> element in the DOM for including a hyperlink.
439
- * Appends to the container node if one is specified, otherwise
440
- * appends to body.
441
431
*
442
432
* @method createA
443
433
* @param {String } href url of page to link to
@@ -464,8 +454,6 @@ p5.prototype.createA = function(href, html, target) {
464
454
/**
465
455
* Creates a slider <input></input> element in the DOM.
466
456
* Use .size() to set the display length of the slider.
467
- * Appends to the container node if one is specified, otherwise
468
- * appends to body.
469
457
*
470
458
* @method createSlider
471
459
* @param {Number } min minimum value of the slider
@@ -522,8 +510,6 @@ p5.prototype.createSlider = function(min, max, value, step) {
522
510
* Creates a <button></button> element in the DOM.
523
511
* Use .size() to set the display size of the button.
524
512
* Use .mousePressed() to specify behavior on press.
525
- * Appends to the container node if one is specified, otherwise
526
- * appends to body.
527
513
*
528
514
* @method createButton
529
515
* @param {String } label label displayed on the button
@@ -942,8 +928,6 @@ p5.prototype.createColorPicker = function(value) {
942
928
/**
943
929
* Creates an <input></input> element in the DOM for text input.
944
930
* Use .<a href="#/p5.Element/size">size()</a> to set the display length of the box.
945
- * Appends to the container node if one is specified, otherwise
946
- * appends to body.
947
931
*
948
932
* @method createInput
949
933
* @param {String } [value] default value of the input box
@@ -1087,8 +1071,7 @@ function createMedia(pInst, type, src, callback) {
1087
1071
/**
1088
1072
* Creates an HTML5 <video> element in the DOM for simple playback
1089
1073
* of audio/video. Shown by default, can be hidden with .<a href="#/p5.Element/hide">hide()</a>
1090
- * and drawn into canvas using video(). Appends to the container
1091
- * node if one is specified, otherwise appends to body. The first parameter
1074
+ * and drawn into canvas using video(). The first parameter
1092
1075
* can be either a single string path to a video file, or an array of string
1093
1076
* paths to different formats of the same video. This is useful for ensuring
1094
1077
* that your video can play across different browsers, as each supports
@@ -1135,12 +1118,11 @@ p5.prototype.createVideo = function(src, callback) {
1135
1118
1136
1119
/**
1137
1120
* Creates a hidden HTML5 <audio> element in the DOM for simple audio
1138
- * playback. Appends to the container node if one is specified,
1139
- * otherwise appends to body. The first parameter
1140
- * can be either a single string path to a audio file, or an array of string
1141
- * paths to different formats of the same audio. This is useful for ensuring
1142
- * that your audio can play across different browsers, as each supports
1143
- * different formats. See <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats'>this
1121
+ * playback. The first parameter can be either a single string path to a
1122
+ * audio file, or an array of string paths to different formats of the same
1123
+ * audio. This is useful for ensuring that your audio can play across
1124
+ * different browsers, as each supports different formats.
1125
+ * See <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats'>this
1144
1126
* page for further information about supported formats</a>.
1145
1127
*
1146
1128
* @method createAudio
@@ -1355,8 +1337,6 @@ p5.prototype.createCapture = function() {
1355
1337
1356
1338
/**
1357
1339
* Creates element with given tag in the DOM with given content.
1358
- * Appends to the container node if one is specified, otherwise
1359
- * appends to body.
1360
1340
*
1361
1341
* @method createElement
1362
1342
* @param {String } tag tag for the new element
0 commit comments