Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch remove properties is not works by frame.remove method #59

Open
leeboo opened this issue Mar 22, 2020 · 1 comment
Open

batch remove properties is not works by frame.remove method #59

leeboo opened this issue Mar 22, 2020 · 1 comment

Comments

@leeboo
Copy link

leeboo commented Mar 22, 2020

scenejs@1.1.5

the API:
/** * remove property value * @param {...String} args - property name * @return {Frame} An instance itself * @example frame.remove("display") */ public remove(...args: NameType[])

when i call this method like this: moveableFrame.remove(...['transform', 'height']), can not remove properties

just can remove one by one :moveableFrame.remove('transform') moveableFrame.remove('height')

@daybrush
Copy link
Owner

daybrush commented Apr 29, 2020

@leeboo

remove method's parameter is not array.

this like below:

frame.remove("transform", "translate");

you can juse use one property.

moveableFrame.remove('transform');
moveableFrame.remove('height');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants