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 domCache = {};
var transitionMap = {
'slide-in' : 'slide-out',
'slide-out' : 'slide-in',
'fade' : 'fade'
slideIn : 'slide-out',
slideOut : 'slide-in',
fade : 'fade'
};
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) {
var e = new MouseEvent(eventName, {
'view' : window,
'detail' : originalEvent.detail,
'bubbles' : true,
'cancelable' : true,
'target' : this.target || originalEvent.relatedTarget,
'clientX' : this.x || originalEvent.clientX,
'clientY' : this.y || originalEvent.clientY,
'screenX' : this.x || originalEvent.screenX,
'screenY' : this.y || originalEvent.screenY,
'ctrlKey' : originalEvent.ctrlKey,
'shiftKey' : originalEvent.shiftKey,
'altKey' : originalEvent.altKey,
'metaKey' : originalEvent.metaKey,
'button' : originalEvent.button
view : window,
detail : originalEvent.detail,
bubbles : true,
cancelable : true,
target : this.target || originalEvent.relatedTarget,
clientX : this.x || originalEvent.clientX,
clientY : this.y || originalEvent.clientY,
screenX : this.x || originalEvent.screenX,
screenY : this.y || originalEvent.screenY,
ctrlKey : originalEvent.ctrlKey,
shiftKey : originalEvent.shiftKey,
altKey : originalEvent.altKey,
metaKey : originalEvent.metaKey,
button : originalEvent.button
});
e.synthetic = true;

6
docs/dist/js/ratchet.js vendored

@ -156,9 +156,9 @@
var cacheMapping = sessionStorage;
var domCache = {};
var transitionMap = {
'slide-in' : 'slide-out',
'slide-out' : 'slide-in',
'fade' : 'fade'
slideIn : 'slide-out',
slideOut : 'slide-in',
fade : 'fade'
};
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,
"disallowMultipleLineStrings": true,
"disallowMultipleVarDecl": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],

6
js/push.js

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

Loading…
Cancel
Save