Skip to content

Commit

Permalink
in Titanium SDK >=3.3.0, fieldCount is a read-only property
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardishungry committed Sep 5, 2014
1 parent 41ec646 commit 0205550
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 0205550

Please sign in to comment.