|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
357 bytes
|
| Line | |
|---|
| 1 | import {set} from "./schedule.js";
|
|---|
| 2 |
|
|---|
| 3 | function easeVarying(id, value) {
|
|---|
| 4 | return function() {
|
|---|
| 5 | var v = value.apply(this, arguments);
|
|---|
| 6 | if (typeof v !== "function") throw new Error;
|
|---|
| 7 | set(this, id).ease = v;
|
|---|
| 8 | };
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | export default function(value) {
|
|---|
| 12 | if (typeof value !== "function") throw new Error;
|
|---|
| 13 | return this.each(easeVarying(this._id, value));
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.