jeremyong/Selene

Is it possible to check if a sel::Selector is nil?

arnavb opened this issue · 1 comments

I like the usage of this library so far, but one thing that bothers me is that there isn't a way to check if a sel::Selector is nil, or i.e doesn't exist. Is it possible for a member function bool sel::Selector::IsNil() (like LuaBridge does) which would make it easier to determine if an element exists or not? I feel this would be very useful.

Never mind, found the exists() function in the source code for Selector.h, which has the function I want.