function getPos(elm) {
				var x = 0, y = 0;

				var offsetParent = elm;
				while (offsetParent && offsetParent.nodeType) {
					x += offsetParent.offsetLeft || 0;
					y += offsetParent.offsetTop || 0;
					offsetParent = offsetParent.offsetParent;
				}

				return {x: x, y: y};
			}
Executes callback when the current selection starts/stops matching the specified selector. The current
state will be passed to the callback as it's first argument.

@method selectorChanged
@param {String} selector CSS selector to check for.
@param {function} callback Callback with state and args when the selector is matches or not.