diff --git a/nl.fokkezb.pullToRefresh/controllers/widget.js b/nl.fokkezb.pullToRefresh/controllers/widget.js index 9f463c9..a33b36a 100644 --- a/nl.fokkezb.pullToRefresh/controllers/widget.js +++ b/nl.fokkezb.pullToRefresh/controllers/widget.js @@ -20,8 +20,8 @@ $.getControl = getControl; return; } - if (!_.isArray(args.children) || !_.contains(['Titanium.UI.ListView', 'Titanium.UI.TableView', 'Ti.UI.ListView', 'Ti.UI.TableView', 'de.marcelpociot.CollectionView'], args.children[args.children.length-1].apiName)) { - console.error('[pullToRefresh] is missing required Ti.UI.ListView or Ti.UI.TableView or de.marcelpociot.CollectionView as first child element.'); + if (!_.isArray(args.children) || !_.contains(['Titanium.UI.ListView', 'Titanium.UI.TableView', 'Ti.UI.ListView', 'Ti.UI.TableView', 'de.marcelpociot.CollectionView', 'ti.collectionview'], args.children[args.children.length-1].apiName)) { + console.error('[pullToRefresh] is missing required Ti.UI.ListView or Ti.UI.TableView or de.marcelpociot.CollectionView or ti.collectionview as first child element.'); return; }