Skip to content

Commit d67ce8a

Browse files
committed
Fix syntax.
1 parent d87937d commit d67ce8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/dom/DomElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ var DomElement = new function() {
149149
// exception. Emulate the behavior of all other browsers, which
150150
// return a rectangle of 0 dimensions.
151151
rect = el.getBoundingClientRect();
152-
} catch(e) {
152+
} catch (e) {
153153
rect = { left: 0, top: 0, width: 0, height: 0 };
154154
}
155155
var x = rect.left - (html.clientLeft || body.clientLeft || 0),
@@ -184,7 +184,7 @@ var DomElement = new function() {
184184
* Checks if element is invisibile (display: none, ...)
185185
*/
186186
isInvisible: function(el) {
187-
return this.getSize(el).equals([0, 0]);
187+
return this.getSize(el).equals(new Size(0, 0));
188188
},
189189

190190
/**

0 commit comments

Comments
 (0)