Skip to content

Commit 3e57b29

Browse files
committed
JSCS config: Set requireSpaceBeforeBinaryOperators, fix occurences
1 parent 8033cf4 commit 3e57b29

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.jscs.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"requireSpacesInsideArrayBrackets": "all",
1313
"disallowLeftStickedOperators": [ "?", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ],
1414
"disallowRightStickedOperators": [ "?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
15+
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
1516
"requireRightStickedOperators": [ "!" ],
1617
"requireLeftStickedOperators": [ "," ],
1718
"disallowKeywords": [ "with" ],

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function createBanner( files ) {
124124
return "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " +
125125
"<%= grunt.template.today('isoDate') %>\n" +
126126
"<%= pkg.homepage ? '* ' + pkg.homepage + '\\n' : '' %>" +
127-
(files ? "* Includes: " + fileNames.join(", ") + "\n" : "")+
127+
(files ? "* Includes: " + fileNames.join(", ") + "\n" : "") +
128128
"* Copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" +
129129
" Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */\n";
130130
}

ui/jquery.ui.mouse.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ $.widget("ui.mouse", {
2929
var that = this;
3030

3131
this.element
32-
.bind("mousedown."+this.widgetName, function(event) {
32+
.bind("mousedown." + this.widgetName, function(event) {
3333
return that._mouseDown(event);
3434
})
35-
.bind("click."+this.widgetName, function(event) {
35+
.bind("click." + this.widgetName, function(event) {
3636
if (true === $.data(event.target, that.widgetName + ".preventClickEvent")) {
3737
$.removeData(event.target, that.widgetName + ".preventClickEvent");
3838
event.stopImmediatePropagation();
@@ -46,11 +46,11 @@ $.widget("ui.mouse", {
4646
// TODO: make sure destroying one instance of mouse doesn't mess with
4747
// other instances of mouse
4848
_mouseDestroy: function() {
49-
this.element.unbind("."+this.widgetName);
49+
this.element.unbind("." + this.widgetName);
5050
if ( this._mouseMoveDelegate ) {
5151
this.document
52-
.unbind("mousemove."+this.widgetName, this._mouseMoveDelegate)
53-
.unbind("mouseup."+this.widgetName, this._mouseUpDelegate);
52+
.unbind("mousemove." + this.widgetName, this._mouseMoveDelegate)
53+
.unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
5454
}
5555
},
5656

0 commit comments

Comments
 (0)