jQuery: is 'DOMSubtreeModified' the best way to handle dynamically added elements (mobile device)?
===

I'm using http://detectmobilebrowsers.com/ to detect if the browser is on a mobile device. If true it needs to hide a facebook share button as it doesn't work properly on mobile devices and instead a facebook feed option is used.

As the elements are added dynamically I used the following: 

	if(jQuery.browser.mobile)
	{
			$('#your-dialog-id').bind("DOMSubtreeModified", function() {
				  $(this).find('.db-share').addClass('db-share-hide');
			});
	}

`#your-dialog-id` is a jQuery UI modal.

**This works** but: Is there a better way to do this?