Auto formatters used
# HTML - VSCode built-in formatter - `/index.html` # JS - https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode - `/js/*.js` # CSS - https://marketplace.visualstudio.com/items?itemName=aeschli.vscode-css-formatter - `/styles/*.css` # XML - https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml - `/locale/*.xml`
This commit is contained in:
+34
-31
@@ -1,40 +1,43 @@
|
||||
/* -------------------- base visual element -------------------- */
|
||||
SQL.Visual = function() {
|
||||
this._init();
|
||||
this._build();
|
||||
}
|
||||
SQL.Visual = function () {
|
||||
this._init();
|
||||
this._build();
|
||||
};
|
||||
|
||||
SQL.Visual.prototype._init = function() {
|
||||
this.dom = {
|
||||
container: null,
|
||||
title: null
|
||||
};
|
||||
this.data = {
|
||||
title:""
|
||||
}
|
||||
}
|
||||
SQL.Visual.prototype._init = function () {
|
||||
this.dom = {
|
||||
container: null,
|
||||
title: null,
|
||||
};
|
||||
this.data = {
|
||||
title: "",
|
||||
};
|
||||
};
|
||||
|
||||
SQL.Visual.prototype._build = function() {}
|
||||
SQL.Visual.prototype._build = function () {};
|
||||
|
||||
SQL.Visual.prototype.toXML = function() {}
|
||||
SQL.Visual.prototype.toXML = function () {};
|
||||
|
||||
SQL.Visual.prototype.fromXML = function(node) {}
|
||||
SQL.Visual.prototype.fromXML = function (node) {};
|
||||
|
||||
SQL.Visual.prototype.destroy = function() { /* "destructor" */
|
||||
var p = this.dom.container.parentNode;
|
||||
if (p && p.nodeType == 1) {
|
||||
p.removeChild(this.dom.container);
|
||||
}
|
||||
}
|
||||
SQL.Visual.prototype.destroy = function () {
|
||||
/* "destructor" */
|
||||
var p = this.dom.container.parentNode;
|
||||
if (p && p.nodeType == 1) {
|
||||
p.removeChild(this.dom.container);
|
||||
}
|
||||
};
|
||||
|
||||
SQL.Visual.prototype.setTitle = function(text) {
|
||||
if (!text) { return; }
|
||||
this.data.title = text;
|
||||
this.dom.title.innerHTML = text;
|
||||
}
|
||||
SQL.Visual.prototype.setTitle = function (text) {
|
||||
if (!text) {
|
||||
return;
|
||||
}
|
||||
this.data.title = text;
|
||||
this.dom.title.innerHTML = text;
|
||||
};
|
||||
|
||||
SQL.Visual.prototype.getTitle = function() {
|
||||
return this.data.title;
|
||||
}
|
||||
SQL.Visual.prototype.getTitle = function () {
|
||||
return this.data.title;
|
||||
};
|
||||
|
||||
SQL.Visual.prototype.redraw = function() {}
|
||||
SQL.Visual.prototype.redraw = function () {};
|
||||
|
||||
Reference in New Issue
Block a user