mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix syntax.
This commit is contained in:
parent
d87937dc03
commit
d67ce8a103
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ var DomElement = new function() {
|
|||
// exception. Emulate the behavior of all other browsers, which
|
||||
// return a rectangle of 0 dimensions.
|
||||
rect = el.getBoundingClientRect();
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
rect = { left: 0, top: 0, width: 0, height: 0 };
|
||||
}
|
||||
var x = rect.left - (html.clientLeft || body.clientLeft || 0),
|
||||
|
@ -184,7 +184,7 @@ var DomElement = new function() {
|
|||
* Checks if element is invisibile (display: none, ...)
|
||||
*/
|
||||
isInvisible: function(el) {
|
||||
return this.getSize(el).equals([0, 0]);
|
||||
return this.getSize(el).equals(new Size(0, 0));
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue