diff plugins/dataforms.js @ 81:7500bc048dbc

Typo errors.
author Sonny Piers <sonny.piers@gmail.com>
date Tue, 07 Feb 2012 18:44:07 +0100
parents 50d36b093e3a
children 06495f77a74c
line wrap: on
line diff
--- a/plugins/dataforms.js
+++ b/plugins/dataforms.js
@@ -127,7 +127,7 @@
         }
 
         var itemsList = x.getElementsByTagNameNS(Lightstring.ns['dataforms'], 'item');
-        if (itemsList.length) {
+        if (itemsList) {
           var fields = parseFields(itemsList[0].getElementsByTagNameNS(Lightstring.ns['dataforms'], 'fields'));
           if (fields)
             form.items = fields;