debugging - What does this Javascript syntax mean? -



debugging - What does this Javascript syntax mean? -

i working ros construction , facing problem debugging, , found snippet:

ros.visualization.glnode = class.extend({ init: function () { this.meshgroupids = [ ]; this.matrix = sglidentitym4(); this.children = [ ]; }, });

what these lines mean?

ros.visualization.glnode :: trying load files? . represent?

class.extend:: do? trying extend class, , if one? in way glnode.

this.matrix:: have doubts when see this command do?

init : function() :: function mean in js? keyword? if not why utilize in onloadbody or window.onload()?

ros.visualization.glnode = class.extend({

this definition of new class (or type of object) using sort of javascript library has function class.extend() in it.

init: function () {

this definition of attribute on new class called "init". type of attribute "function" means works method , can called.

this.meshgroupids = [ ];

this definition of fellow member variable on object of class , initializes empty array.

this.matrix = sglidentitym4();

this definition of fellow member variable on object of thisclass , initializes homecoming value sglidentitym4() function call.

this.children = [ ];

this definition of fellow member variable on object of class , initializes empty array.

"this" reference local object , how address instance variables of object in.

javascript debugging

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -