Skip to content

Commit 14a9c52

Browse files
fixed linting issues
1 parent 489818a commit 14a9c52

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/addons/p5.dom.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -948,18 +948,18 @@
948948
* @return {p5.MediaElement|p5.Element} pointer to video p5.Element
949949
* @example
950950
* <div><code>
951-
* var vid
952-
* function setup(){
953-
* vid = createVideo(["small.mp4","small.ogv","small.webm"], vidLoad);
951+
* var vid;
952+
* function setup() {
953+
* vid = createVideo(['small.mp4', 'small.ogv', 'small.webm'], vidLoad);
954954
* }
955-
*
955+
*
956956
* // This function is called when the video loads
957-
* function vidLoad(){
958-
* vid.play();
957+
* function vidLoad() {
958+
* vid.play();
959959
* }
960960
* </code></div>
961961
*/
962-
p5.prototype.createVideo = function(src, callback) {
962+
p5.prototype.createVideo = function(src, callback) {
963963
p5._validateParameters('createVideo', arguments);
964964
return createMedia(this, 'video', src, callback);
965965
};

0 commit comments

Comments
 (0)