Permalink
Browse files

Update source/dom/Control.js

Fixing typos.

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@palm.com)
  • Loading branch information...
1 parent 6b49977 commit d56f14d61bed50d9879775b0b5c3e6853f8811c1 @unwiredben unwiredben committed Dec 28, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 source/dom/Control.js
@@ -520,15 +520,16 @@ enyo.kind({
{left: _offsetLeft_, top: _offsetTop_, width: _offsetWidth_, height: _offsetHeight_}
Values returned are only valid if _hasNode()_ is truthy.
- If there's no DOM node for the object, this a structure with _undefined_ for all fields.
+ If there's no DOM node for the object, this returns a bounds structure with
+ _undefined_ as the value of all fields.
var bounds = this.getBounds();
enyo.log(bounds.width);
*/
getBounds: function() {
var n = this.node || this.hasNode();
var b = enyo.dom.getBounds(n);
- return b || { return {left: undefined, top: undefined, width: undefined, height: undefined};
+ return b || {left: undefined, top: undefined, width: undefined, height: undefined};
},
/**
Sets any or all of the geometry style properties _width_, _height_,

0 comments on commit d56f14d

Please sign in to comment.