Open ruslanrf opened 8 years ago
This functionality is necessary if the filter with an array of elements has to be cleaned by a specific category (e.g. follow or location), otherwise, a user has to call corresponding functions for each item in the array in the filter. (e.g. unfollow() for each user id added with the function follow() )... Maybe an alternative approach can be just to expose (add "this") variables such as FILTER_TYPE_TRACKING, FILTER_TYPE_LOCATION, FILTER_TYPE_FOLLOW, and FILTER_TYPE_LANGUAGE? As well as removeFilter(), removeAllFilters()?
Yea, that might be nicer. Want to give it a shot?
Generally I already think the API is bloated. This makes it worse. Can you think of a way to condense all these methods?