Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d56f14d61bed50d9879775b0b5c3e6853f8811c1 1 parent 6b49977
@unwiredben unwiredben authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 source/dom/Control.js
View
5 source/dom/Control.js
@@ -520,7 +520,8 @@ 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);
@@ -528,7 +529,7 @@ enyo.kind({
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_,
Please sign in to comment.
Something went wrong with that request. Please try again.