Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reindex_end Event gibt das beeinflusste Element zurück #42

Merged
merged 2 commits into from
Feb 28, 2017

Conversation

ynamite
Copy link
Member

@ynamite ynamite commented Feb 27, 2017

Neu wird bei einer Callback-Funktion auf dem reindex_end Event als
erster Parameter das beeinflusste Element zurückgegeben. Beispiel:

mblock_module.registerCallback('reindex_end', function( item ){
console.log(item);
});

Neu wird bei einer Callback-Funktion auf dem reindex_end Event als
erster Parameter das beeinflusste Element zurückgegeben. Beispiel:
```
mblock_module.registerCallback('reindex_end', function( item ){
    console.log(item);
});
```
Copy link
Member

@joachimdoerr joachimdoerr left a comment

Choose a reason for hiding this comment

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

Ich beantworte mit das mal selbst:
mblock_module.executeRegisteredCallbacks('reindex_end');
mblock_module.executeRegisteredCallbacks('add_item_start');

mblock_scroll(element, item.next());
element.trigger('mblock:add', [element]);
mblock_scroll(element, iClone);
//element.trigger('mblock:add', [element]);
Copy link
Member

Choose a reason for hiding this comment

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

Wie wird das event getriggert wenn du das so auskommentierst?

@joachimdoerr joachimdoerr merged commit 9b6fa4a into FriendsOfREDAXO:master Feb 28, 2017
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.

None yet

2 participants