"button" and "data-api" are event namespaces separated . after the name of the event.
Of course, it will only work with "click" , but this will break unrelated code when bootstrap disables the data API using .off("click") . In namespaces, they can call .off("click.data-api") to remove only events belonging to boot-api data.
source share