Added doInOnce for one time execution. Similar to jQuery.one for events