Skip to content

Commit

Permalink
Merge pull request #44 from WIZARDISHUNGRY/master
Browse files Browse the repository at this point in the history
in Titanium SDK >=3.3.0, fieldCount is a read-only property
  • Loading branch information
xavierlacot committed Nov 14, 2014
2 parents 41ec646 + 0205550 commit f6a30f5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions joli.js
Expand Up @@ -605,13 +605,7 @@ var joliCreator = function() {
return result;
}

var fieldCount;

if (Titanium.Platform.name !== 'android') {
fieldCount = rows.fieldCount();
} else {
fieldCount = rows.fieldCount;
}
var fieldCount = (typeof(rows.fieldCount) == "function") ? rows.fieldCount() : rows.fieldCount;

switch (hydratationMode) {
case 'array':
Expand Down

0 comments on commit f6a30f5

Please sign in to comment.