MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / send

Method send

src/core/CommentManager.ts:111–123  ·  view source on GitHub ↗

* Sends a comment onto the stage * @param data - abstract comment data

(data:Object)

Source from the content-addressed store, hash-verified

109 * @param data - abstract comment data
110 */
111 public send(data:Object):void {
112 if (!data.hasOwnProperty("mode")) {
113 data["mode"] = 1;
114 }
115 if (this.options.scripting.mode.indexOf(data["mode"]) >= 0) {
116 /** Scripting comment **/
117 if (this.options.scripting.engine !== null) {
118 this.options.scripting.engine.eval(data["code"]);
119 }
120 return;
121 }
122 this.runline.push(this.factory.create(this, data));
123 }
124
125 /**
126 * Set the bounds for the comment manager

Callers 4

CommentProvider.jsFile · 0.45
CommentManager.jsFile · 0.45
fetchFileFunction · 0.45
onResizeFunction · 0.45

Calls 3

hasOwnPropertyMethod · 0.80
evalMethod · 0.65
createMethod · 0.65

Tested by

no test coverage detected