Browse Source

Enable `disallowQuotedKeysInObjects` JSCS check and fix the remaining issues.

pull/474/head
XhmikosR 11 years ago
parent
commit
3fd7dced21
  1. 6
      dist/js/ratchet.js
  2. 2
      dist/js/ratchet.min.js
  3. 28
      docs/assets/js/fingerblast.js
  4. 6
      docs/dist/js/ratchet.js
  5. 2
      docs/dist/js/ratchet.min.js
  6. 1
      js/.jscsrc
  7. 6
      js/push.js

6
dist/js/ratchet.js vendored

@ -156,9 +156,9 @@
var cacheMapping = sessionStorage; var cacheMapping = sessionStorage;
var domCache = {}; var domCache = {};
var transitionMap = { var transitionMap = {
'slide-in' : 'slide-out', slideIn : 'slide-out',
'slide-out' : 'slide-in', slideOut : 'slide-in',
'fade' : 'fade' fade : 'fade'
}; };
var bars = { var bars = {

2
dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

28
docs/assets/js/fingerblast.js

@ -232,20 +232,20 @@
createMouseEvent: function (eventName, originalEvent) { createMouseEvent: function (eventName, originalEvent) {
var e = new MouseEvent(eventName, { var e = new MouseEvent(eventName, {
'view' : window, view : window,
'detail' : originalEvent.detail, detail : originalEvent.detail,
'bubbles' : true, bubbles : true,
'cancelable' : true, cancelable : true,
'target' : this.target || originalEvent.relatedTarget, target : this.target || originalEvent.relatedTarget,
'clientX' : this.x || originalEvent.clientX, clientX : this.x || originalEvent.clientX,
'clientY' : this.y || originalEvent.clientY, clientY : this.y || originalEvent.clientY,
'screenX' : this.x || originalEvent.screenX, screenX : this.x || originalEvent.screenX,
'screenY' : this.y || originalEvent.screenY, screenY : this.y || originalEvent.screenY,
'ctrlKey' : originalEvent.ctrlKey, ctrlKey : originalEvent.ctrlKey,
'shiftKey' : originalEvent.shiftKey, shiftKey : originalEvent.shiftKey,
'altKey' : originalEvent.altKey, altKey : originalEvent.altKey,
'metaKey' : originalEvent.metaKey, metaKey : originalEvent.metaKey,
'button' : originalEvent.button button : originalEvent.button
}); });
e.synthetic = true; e.synthetic = true;

6
docs/dist/js/ratchet.js vendored

@ -156,9 +156,9 @@
var cacheMapping = sessionStorage; var cacheMapping = sessionStorage;
var domCache = {}; var domCache = {};
var transitionMap = { var transitionMap = {
'slide-in' : 'slide-out', slideIn : 'slide-out',
'slide-out' : 'slide-in', slideOut : 'slide-in',
'fade' : 'fade' fade : 'fade'
}; };
var bars = { var bars = {

2
docs/dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

1
js/.jscsrc

@ -5,6 +5,7 @@
"disallowMixedSpacesAndTabs": true, "disallowMixedSpacesAndTabs": true,
"disallowMultipleLineStrings": true, "disallowMultipleLineStrings": true,
"disallowMultipleVarDecl": true, "disallowMultipleVarDecl": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], "disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],

6
js/push.js

@ -21,9 +21,9 @@
var cacheMapping = sessionStorage; var cacheMapping = sessionStorage;
var domCache = {}; var domCache = {};
var transitionMap = { var transitionMap = {
'slide-in' : 'slide-out', slideIn : 'slide-out',
'slide-out' : 'slide-in', slideOut : 'slide-in',
'fade' : 'fade' fade : 'fade'
}; };
var bars = { var bars = {

Loading…
Cancel
Save