Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Adds support for new TiCollectionView name "ti.collectionview" #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nl.fokkezb.pullToRefresh/controllers/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down