Skip to content

Conversation

@waitingmyself
Copy link

add attribute data-trunk8-* to each element for special settings
@rviscomi sorry for my english,i am uncertain if i understand your words

It should not take precedence over the options object in init.

the order of the config is :
trunk8.defaults -- trunk8 config -- element attribute
and the next will override the last

trunk8.js Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer verbose name "elementAttributes"

@waitingmyself
Copy link
Author

@rviscomi thanks for your reply,and i have add a new commit to fix the problem.

trunk8.js Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved into the return function with the other vars (elementAttributes, attributes).

format the script
@waitingmyself
Copy link
Author

thanks @rviscomi i learn much more than the code itself ~~

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants