Skip to content

Commit

Permalink
fix: update m_instance.id to m_instance.name
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 13, 2022
1 parent f885eed commit 38da5df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ const CoCreateApi = {
m_instance['actions'].forEach((action) => {
if (typeof m_instance[`action_${action}`] !== 'function') {
m_instance[`action_${action}`] = function(element) {
self.__commonAction(m_instance.id, action, element);
self.__commonAction(m_instance.name, action, element);
};
}
CoCreateAction.init({
action: action,
name: action,
endEvent: action,
callback: (btn) => {
m_instance[`action_${action}`](btn);
Expand Down

0 comments on commit 38da5df

Please sign in to comment.