Use Twitter JavaScript style

This commit is contained in:
Nicolas Gallagher
2016-08-26 11:29:11 -07:00
parent 201bfd2e4d
commit f8f2898095
93 changed files with 1936 additions and 1719 deletions
+6 -6
View File
@@ -5,15 +5,15 @@
* @flow
*/
import NativeMethodsMixin from '../NativeMethodsMixin'
import NativeMethodsMixin from '../NativeMethodsMixin';
const applyNativeMethods = (Component) => {
Object.keys(NativeMethodsMixin).forEach((method) => {
if (!Component.prototype[method]) {
Component.prototype[method] = NativeMethodsMixin[method]
Component.prototype[method] = NativeMethodsMixin[method];
}
})
return Component
}
});
return Component;
};
module.exports = applyNativeMethods
module.exports = applyNativeMethods;