function Task(params) {
this.title = params.title;
this.description = params.description;
this.id = params.id;
this.deleteBtnClickHandler = params.deleteBtnClickHandler;
this.createHtml();
this.html.on("click", this.deleteBtnClickHandler);
}
std :: vector <Pointer*> myObjects;
somefuction(std::vector <Pointer*> &myObjects)
{
for(int i = 0; i < myObjects.size(); i++)
{
if (strstr(typeid(myObjects[i]).name(), "SomeName"))
{
myObjects.erase(myObjects.begin() + i);
}
}
}