Skip to content

Commit b2e2d0f

Browse files
author
Nicholas C. Zakas
committed
Fixed bug in display property grouping where line numbers weren't showing up
1 parent 76cda2c commit b2e2d0f

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

build/csslint-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 23-June-2011 03:41:42 */
24+
/* Build time: 23-June-2011 03:44:41 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -9743,7 +9743,7 @@ CSSLint.addRule({
97439743
var name = event.property.text.toLowerCase();
97449744

97459745
if (propertiesToCheck[name]){
9746-
properties[name] = { value: event.value.text, line: name.line, col: name.col };
9746+
properties[name] = { value: event.value.text, line: event.property.line, col: event.property.col };
97479747
}
97489748
});
97499749

build/csslint-rhino.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 23-June-2011 03:41:42 */
24+
/* Build time: 23-June-2011 03:44:41 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib
@@ -9744,7 +9744,7 @@ CSSLint.addRule({
97449744
var name = event.property.text.toLowerCase();
97459745

97469746
if (propertiesToCheck[name]){
9747-
properties[name] = { value: event.value.text, line: name.line, col: name.col };
9747+
properties[name] = { value: event.value.text, line: event.property.line, col: event.property.col };
97489748
}
97499749
});
97509750

build/csslint-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 23-June-2011 03:41:42 */
24+
/* Build time: 23-June-2011 03:44:41 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -9743,7 +9743,7 @@ CSSLint.addRule({
97439743
var name = event.property.text.toLowerCase();
97449744

97459745
if (propertiesToCheck[name]){
9746-
properties[name] = { value: event.value.text, line: name.line, col: name.col };
9746+
properties[name] = { value: event.value.text, line: event.property.line, col: event.property.col };
97479747
}
97489748
});
97499749

build/csslint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 23-June-2011 03:41:42 */
24+
/* Build time: 23-June-2011 03:44:41 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib
@@ -9744,7 +9744,7 @@ CSSLint.addRule({
97449744
var name = event.property.text.toLowerCase();
97459745

97469746
if (propertiesToCheck[name]){
9747-
properties[name] = { value: event.value.text, line: name.line, col: name.col };
9747+
properties[name] = { value: event.value.text, line: event.property.line, col: event.property.col };
97489748
}
97499749
});
97509750

build/npm/lib/csslint-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 23-June-2011 03:41:42 */
24+
/* Build time: 23-June-2011 03:44:41 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -9743,7 +9743,7 @@ CSSLint.addRule({
97439743
var name = event.property.text.toLowerCase();
97449744

97459745
if (propertiesToCheck[name]){
9746-
properties[name] = { value: event.value.text, line: name.line, col: name.col };
9746+
properties[name] = { value: event.value.text, line: event.property.line, col: event.property.col };
97479747
}
97489748
});
97499749

src/rules/display-property-grouping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ CSSLint.addRule({
4444
var name = event.property.text.toLowerCase();
4545

4646
if (propertiesToCheck[name]){
47-
properties[name] = { value: event.value.text, line: name.line, col: name.col };
47+
properties[name] = { value: event.value.text, line: event.property.line, col: event.property.col };
4848
}
4949
});
5050

0 commit comments

Comments
 (0)