mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-22 08:13:51 +02:00
incomplete gfx-api liftout
This commit is contained in:
@@ -52,9 +52,11 @@ var baseClass = {
|
||||
}
|
||||
};
|
||||
|
||||
// For some reason we can copy from gfx into base but
|
||||
// not the other way around, while preserving context.
|
||||
var gfxObject = require("./gfx-api");
|
||||
Object.keys(baseClass).forEach(fname => {
|
||||
gfxObject[fname] = baseClass[fname];
|
||||
Object.keys(gfxObject).forEach(fname => {
|
||||
baseClass[fname] = gfxObject[fname];
|
||||
});
|
||||
|
||||
module.exports = React.createClass(gfxObject);
|
||||
module.exports = React.createClass(baseClass);
|
||||
|
Reference in New Issue
Block a user