lib/action/selectItem.js
function findInnerRanges(rule) {
		// rule selector
		var ranges = [rule.nameRange(true)];

		// find nested sections, keep selectors only
		var nestedSections = cssSections.nestedSectionsInRule(rule);
		nestedSections.forEach(function(section) {
			ranges.push(range.create2(section.start, section._selectorEnd));
		});

		// add full property ranges and values
		rule.list().forEach(function(property) {
			ranges = ranges.concat(makePossibleRangesCSS(property));
		});

		ranges = range.sort(ranges);

		// optimize result: remove empty ranges and duplicates
		ranges = ranges.filter(function(item) {
			return !!item.length();
		});
		return utils.unique(ranges, function(item) {
			return item.toString();
		});
	}
function findInnerRanges(rule) {
		// rule selector
		var ranges = [rule.nameRange(true)];

		// find nested sections, keep selectors only
		var nestedSections = cssSections.nestedSectionsInRule(rule);
		nestedSections.forEach(function(section) {
			ranges.push(range.create2(section.start, section._selectorEnd));
		});

		// add full property ranges and values
		rule.list().forEach(function(property) {
			ranges = ranges.concat(makePossibleRangesCSS(property));
		});

		ranges = range.sort(ranges);

		// optimize result: remove empty ranges and duplicates
		ranges = ranges.filter(function(item) {
			return !!item.length();
		});
		return utils.unique(ranges, function(item) {
			return item.toString();
		});
	}
function findInnerRanges ( rule ) { // rule selector var ranges = [ rule . nameRange ( true ) ] ; // find nested sections, keep selectors only var nestedSections = cssSections . nestedSectionsInRule ( rule ) ; nestedSections . forEach ( function ( section ) { ranges . push ( range . create2 ( section . start , section . _selectorEnd ) ) ; } ) ; // add full property ranges and values rule . list ( ) . forEach ( function ( property ) { ranges = ranges . concat ( makePossibleRangesCSS ( property ) ) ; } ) ; ranges = range . sort ( ranges ) ; // optimize result: remove empty ranges and duplicates ranges = ranges . filter ( function ( item ) { return ! ! item . length ( ) ; } ) ; return utils . unique ( ranges , function ( item ) { return item . toString ( ) ; } ) ; }
Returns all ranges inside given rule, available for selection
@param  {CSSEditContainer} rule
@return {Array}
Returns all ranges inside given rule available for selection