cheng-alvin / durian.js

Durian.js is a lightweight Javascript framework that allows for custom HTML tag to create interactive components for large applications! Easy to learn, light and fun to develop with!
MIT License
2 stars 2 forks source link

Constant encapsulation #22

Closed cheng-alvin closed 10 months ago

cheng-alvin commented 10 months ago

This is the development for the encapsulation of the constant script currently inside the source code (EXPOSURE_SCRIPT that exposes the DOM functions implemented in #21) This PR would just encapsulate and separate the script in another file for orginization purposes. Therefore, more scripts for attributes and even state in the furture (Potentially) can be added without cluter to the codebase.

Note: The script still needs to be imported to component.js inorder to it to work properly, a TODO notice has already been added as of commit number a2b3ecf

Thanks

cheng-alvin commented 10 months ago

I think this is quite irrelevant since the uuid variable could not be encapsulated for the code and generated in the class. Therefore, this pull request would be closed now.