Format some .js.

This commit is contained in:
Paulo Gustavo Veiga
2015-04-12 00:23:24 -03:00
parent 04e1f71faa
commit 3d36a4d9d4
31 changed files with 531 additions and 479 deletions

View File

@@ -22,8 +22,10 @@ web2d.Workspace = new Class({
this._htmlContainer = this._createDivContainer();
var peer = web2d.peer.Toolkit.createWorkspace(this._htmlContainer);
var defaultAttributes = {width: '200px', height: '200px', stroke: '1px solid #edf1be',
fillColor: "white", coordOrigin: '0 0', coordSize: '200 200' };
var defaultAttributes = {
width: '200px', height: '200px', stroke: '1px solid #edf1be',
fillColor: "white", coordOrigin: '0 0', coordSize: '200 200'
};
for (var key in attributes) {
defaultAttributes[key] = attributes[key];
}
@@ -34,6 +36,7 @@ web2d.Workspace = new Class({
getType: function () {
return "Workspace";
},
/**
* Appends an element as a child to the object.
*/
@@ -154,7 +157,7 @@ web2d.Workspace = new Class({
if (style != 'solid') {
throw 'Not supported style stroke style:' + style;
}
this._htmlContainer.css('border',width + ' ' + style + ' ' + color);
this._htmlContainer.css('border', width + ' ' + style + ' ' + color);
if (opacity || opacity === 0) {
throw "Unsupported operation. Opacity not supported.";