@samitouri / QOS-React-2 / commits / 2126600c37

[lint] disable a couple rules since rest args aren't processed right

Paul O’Shannessy committed Jan 13, 2015 at 12:51 UTC 2126600c37fd59b5523699315568990986349b45
1 file changed +2
src/classic/class/ReactClass.js
+2
@@ -642,6 +642,7 @@ function bindAutoBindMethod(component, method) {
642 boundMethod.__reactBoundArguments = null;
643 var componentName = component.constructor.displayName;
644 var _bind = boundMethod.bind;
645 + /* eslint-disable block-scoped-var, no-undef */
646 boundMethod.bind = function(newThis, ...args) {
647 // User is trying to bind() an autobound method; we effectively will
648 // ignore the value of "this" that the user is trying to use, so
@@ -666,6 +667,7 @@ function bindAutoBindMethod(component, method) {
667 reboundMethod.__reactBoundMethod = method;
668 reboundMethod.__reactBoundArguments = args;
669 return reboundMethod;
670 + /* eslint-enable */
671 };
672 }
673 return boundMethod;