Elegant and Minimalistic Javascript Application Library
MIT License
Bot releases are hidden (Show)
Published by Javiani almost 6 years ago
null
or undefined
was passed as argument on emit
Published by Javiani about 6 years ago
async
references from the code.Async is a keyword on javascript and was being used on topics of
pub/sub
internal library causing errors on specific publish calls. This bug fix is related to3.3.3
and3.3.2
versions. This issue is completely solved on this version.
Published by Javiani about 6 years ago
Published by Javiani about 6 years ago
each
function, testing item before callback calls. ( Resulting on publish/subscribe errors in particular cases )Published by Javiani over 6 years ago
[ Feature ] - Enabled Multiple init:main()
calls for code splitting.
[ Feature ] - Unlocked Async Components
Code like this is now supported:
import inview from '../../helpers/inview'
export default async ({ init:main }) => {
await inview('.hello')
const helloworld = await import('./hello-world')
main(() => [
helloworld.default
])
}
Published by Javiani almost 7 years ago
[FIX] - On removeEventListener ( .off ) when using useCapture
on event delegation ( focus, blur... ).
[REMOVE] - Removing unused and not documented .destroyAll()
method.
Published by Javiani about 7 years ago
.destroy( nodeHtmlElement )
jails.destroy( parent, '[data-component*=somecomponent]' )
, you should now send only the node which will be destroyed.E.g jails.destroy( node )
.
You can use queryselector to map over nodelist calling jails.destroy()
for each element in order to destroy several components.
Published by Javiani about 7 years ago
jails
to the component interface.use()
to .extends
for component interface extendingsYou should now use the jails.extends()
for reactor, or arch, and jails.use()
for logger and jquery.adapter.
For more information checkout the Demos section looking for main.js or core.js config files to see how middlewares are used.
Published by Javiani over 7 years ago
[Fix] - Fixes on jails.destroy()
method. It wasn't actually calling :destroy
events on components.
Published by Javiani over 7 years ago
.
notationpub/sub
systemDependecy Injection
.use
interface for Jails
extendingjails.legacy.js
Published by Javiani over 7 years ago
.on()
interface, it was breaking in multiple calls.Published by Javiani over 7 years ago
Published by Javiani over 7 years ago
props()
function interface to get element attributes available in component arguments.jails.events
, now everything is "delegable" including custom events.props()
call.destroy()
and render()
methods..listen()
method..off()
method on components interface.Published by Javiani almost 8 years ago
Published by Javiani almost 8 years ago
Published by Javiani about 8 years ago
Published by Javiani about 8 years ago
Published by Javiani about 8 years ago
@
chars, e.g [email protected]
.on()
method can be used in favor of .listen()
Published by Javiani about 8 years ago
.listen()
methods, you can listen to a custom event triggered from any components.component.listen('*:eventname')
Published by Javiani about 8 years ago
- Simplicity
- Flexibility
- Functional Oriented
jails.components()
calls, every component should be created as jails('my-component')
.get()
, .publish()
and .subscribe()
are now available.jails()
as a parameter.