Skip to content

Commit 76cda2c

Browse files
author
Nicholas C. Zakas
committed
Fixed bug with box model rule where line numbers weren't showing up
1 parent 2e03759 commit 76cda2c

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:38:52 */
24+
/* Build time: 23-June-2011 03:41:42 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -9665,7 +9665,7 @@ CSSLint.addRule({
96659665

96669666
if (heightProperties[name] || widthProperties[name]){
96679667
if (!/^0\S*$/.test(event.value) && !(name == "border" && event.value == "none")){
9668-
properties[name] = { line: name.line, col: name.col };
9668+
properties[name] = { line: event.property.line, col: event.property.col };
96699669
}
96709670
} else {
96719671
if (name == "width" || name == "height"){

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:38:52 */
24+
/* Build time: 23-June-2011 03:41:42 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib
@@ -9666,7 +9666,7 @@ CSSLint.addRule({
96669666

96679667
if (heightProperties[name] || widthProperties[name]){
96689668
if (!/^0\S*$/.test(event.value) && !(name == "border" && event.value == "none")){
9669-
properties[name] = { line: name.line, col: name.col };
9669+
properties[name] = { line: event.property.line, col: event.property.col };
96709670
}
96719671
} else {
96729672
if (name == "width" || name == "height"){

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:38:52 */
24+
/* Build time: 23-June-2011 03:41:42 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -9665,7 +9665,7 @@ CSSLint.addRule({
96659665

96669666
if (heightProperties[name] || widthProperties[name]){
96679667
if (!/^0\S*$/.test(event.value) && !(name == "border" && event.value == "none")){
9668-
properties[name] = { line: name.line, col: name.col };
9668+
properties[name] = { line: event.property.line, col: event.property.col };
96699669
}
96709670
} else {
96719671
if (name == "width" || name == "height"){

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:38:52 */
24+
/* Build time: 23-June-2011 03:41:42 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib
@@ -9666,7 +9666,7 @@ CSSLint.addRule({
96669666

96679667
if (heightProperties[name] || widthProperties[name]){
96689668
if (!/^0\S*$/.test(event.value) && !(name == "border" && event.value == "none")){
9669-
properties[name] = { line: name.line, col: name.col };
9669+
properties[name] = { line: event.property.line, col: event.property.col };
96709670
}
96719671
} else {
96729672
if (name == "width" || name == "height"){

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:38:52 */
24+
/* Build time: 23-June-2011 03:41:42 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -9665,7 +9665,7 @@ CSSLint.addRule({
96659665

96669666
if (heightProperties[name] || widthProperties[name]){
96679667
if (!/^0\S*$/.test(event.value) && !(name == "border" && event.value == "none")){
9668-
properties[name] = { line: name.line, col: name.col };
9668+
properties[name] = { line: event.property.line, col: event.property.col };
96699669
}
96709670
} else {
96719671
if (name == "width" || name == "height"){

src/rules/box-model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ CSSLint.addRule({
4040

4141
if (heightProperties[name] || widthProperties[name]){
4242
if (!/^0\S*$/.test(event.value) && !(name == "border" && event.value == "none")){
43-
properties[name] = { line: name.line, col: name.col };
43+
properties[name] = { line: event.property.line, col: event.property.col };
4444
}
4545
} else {
4646
if (name == "width" || name == "height"){

0 commit comments

Comments
 (0)