+16
@@ -0,0 +1,16 @@
|
||||
import {get, set} from "./schedule.js";
|
||||
|
||||
function easeConstant(id, value) {
|
||||
if (typeof value !== "function") throw new Error;
|
||||
return function() {
|
||||
set(this, id).ease = value;
|
||||
};
|
||||
}
|
||||
|
||||
export default function(value) {
|
||||
var id = this._id;
|
||||
|
||||
return arguments.length
|
||||
? this.each(easeConstant(id, value))
|
||||
: get(this.node(), id).ease;
|
||||
}
|
||||
Reference in New Issue
Block a user