code: function () {
  	
  	function commons() {}
  	commons.attachParentSelector = function (parentSelector, defaultSelector) {
  		var customSelector = defaultSelector;
  		if (parentSelector !== '' && parentSelector.length > 0) {
  			if (parentSelector === defaultSelector) {
  				customSelector = defaultSelector;
  			} else if ($(parentSelector).hasClass(defaultSelector)) {
  				customSelector = parentSelector + "" + defaultSelector;
  			} else {
  				customSelector = parentSelector + " " + defaultSelector;
  			}
  		}
  		return customSelector;
  	};
  	return commons;
  }
docs: Attach Parent Selector