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

onShow action fired Twice #33

Open
vvscode opened this issue Sep 29, 2016 · 0 comments
Open

onShow action fired Twice #33

vvscode opened this issue Sep 29, 2016 · 0 comments

Comments

@vvscode
Copy link

vvscode commented Sep 29, 2016

Env:

Ember 1.13.11
Ember Data 1.13.16
jQuery 2.1.4
idx-modal 1.4

on open modal I have two calls for onShow action

First one stack:

onShow (controller.js:374)
send (ember.debug.js:34011)
triggerAction (ember.debug.js:37682)
sendAction (ember.debug.js:47838)
open (modal.js:134)
(anonymous function) (modal.js:232)
applyStr (ember.debug.js:23674)
sendEvent (ember.debug.js:17190)
notifyObservers (ember.debug.js:20733)
propertyDidChange (ember.debug.js:20529)
set (ember.debug.js:21015)
set (ember.debug.js:36772)
_propagateAttrsToThis (ember.debug.js:44084)
_internalDidReceiveAttrs (ember.debug.js:44096)
trigger (ember.debug.js:48358)
superWrapper (ember.debug.js:23278)
Renderer.componentUpdateAttrs (ember.debug.js:13126)
(anonymous function) (ember.debug.js:10831)
instrument (ember.debug.js:11586)
ComponentNodeManager.rerender (ember.debug.js:10825)
componentHook (ember.debug.js:8114)
handleRedirect (ember.debug.js:52007)
block (ember.debug.js:51979)
block (ember.debug.js:51210)
(anonymous function) (ember.debug.js:51298)
dirtyCheck (ember.debug.js:51353)
block (ember.debug.js:51297)
RenderResult.populateNodes (ember.debug.js:52875)
RenderResult.revalidateWith (ember.debug.js:52849)
validateChildMorphs (ember.debug.js:53211)
dirtyCheck (ember.debug.js:51358)
inline (ember.debug.js:51304)
RenderResult.populateNodes (ember.debug.js:52877)
RenderResult.revalidateWith (ember.debug.js:52849)
validateChildMorphs (ember.debug.js:53211)
dirtyCheck (ember.debug.js:51358)
block (ember.debug.js:51297)
RenderResult.populateNodes (ember.debug.js:52875)
RenderResult.revalidateWith (ember.debug.js:52849)
validateChildMorphs (ember.debug.js:53211)
dirtyCheck (ember.debug.js:51358)
content (ember.debug.js:51311)
RenderResult.populateNodes (ember.debug.js:52879)
RenderResult.revalidateWith (ember.debug.js:52849)
validateChildMorphs (ember.debug.js:53211)
dirtyCheck (ember.debug.js:51358)
content (ember.debug.js:51311)
RenderResult.populateNodes (ember.debug.js:52879)
RenderResult.revalidateWith (ember.debug.js:52849)
RenderResult.revalidate (ember.debug.js:52826)
Renderer_revalidateTopLevelView (ember.debug.js:12995)
revalidate (ember.debug.js:50807)
invoke (ember.debug.js:1021)
flush (ember.debug.js:1085)
flush (ember.debug.js:886)
end (ember.debug.js:175)
run (ember.debug.js:297)
run (ember.debug.js:21138)
handler (ember.debug.js:24474)
(anonymous function) (ember.debug.js:46810)
dispatch (jquery.js:4435)
elemData.handle (jquery.js:4121)

And second one

onShow (controller.js:374)
send (ember.debug.js:34011)
triggerAction (ember.debug.js:37682)
sendAction (ember.debug.js:47838)
open (modal.js:134)
(anonymous function) (modal.js:232)
applyStr (ember.debug.js:23674)
sendEvent (ember.debug.js:17190)
notifyObservers (ember.debug.js:20733)
propertyDidChange (ember.debug.js:20529)
set (ember.debug.js:21015)
set (ember.debug.js:36772)
_propagateAttrsToThis (ember.debug.js:44084)
_internalDidReceiveAttrs (ember.debug.js:44096)
trigger (ember.debug.js:48358)
superWrapper (ember.debug.js:23278)
Renderer.componentUpdateAttrs (ember.debug.js:13126)
(anonymous function) (ember.debug.js:10831)
instrument (ember.debug.js:11586)
ComponentNodeManager.rerender (ember.debug.js:10825)
componentHook (ember.debug.js:8114)
handleRedirect (ember.debug.js:52007)
block (ember.debug.js:51979)
block (ember.debug.js:51210)
(anonymous function) (ember.debug.js:51298)
dirtyCheck (ember.debug.js:51353)
block (ember.debug.js:51297)
RenderResult.populateNodes (ember.debug.js:52875)
RenderResult.revalidateWith (ember.debug.js:52849)
validateChildMorphs (ember.debug.js:53211)
dirtyCheck (ember.debug.js:51358)
inline (ember.debug.js:51304)
RenderResult.populateNodes (ember.debug.js:52877)
RenderResult.revalidateWith (ember.debug.js:52849)
validateChildMorphs (ember.debug.js:53211)
dirtyCheck (ember.debug.js:51358)
block (ember.debug.js:51297)
RenderResult.populateNodes (ember.debug.js:52875)
RenderResult.revalidateWith (ember.debug.js:52849)
validateChildMorphs (ember.debug.js:53211)
dirtyCheck (ember.debug.js:51358)
content (ember.debug.js:51311)
RenderResult.populateNodes (ember.debug.js:52879)
RenderResult.revalidateWith (ember.debug.js:52849)
validateChildMorphs (ember.debug.js:53211)
dirtyCheck (ember.debug.js:51358)
content (ember.debug.js:51311)
RenderResult.populateNodes (ember.debug.js:52879)
RenderResult.revalidateWith (ember.debug.js:52849)
RenderResult.revalidate (ember.debug.js:52826)
Renderer_revalidateTopLevelView (ember.debug.js:12995)
revalidate (ember.debug.js:50807)
invoke (ember.debug.js:1021)
flush (ember.debug.js:1085)
flush (ember.debug.js:886)
end (ember.debug.js:175)
run (ember.debug.js:297)
run (ember.debug.js:21138)
handler (ember.debug.js:24474)
(anonymous function) (ember.debug.js:46810)
dispatch (jquery.js:4435)
elemData.handle (jquery.js:4121)

Current workaround for critical places is

onShow: _.debounce(function() {
// code
}, 500);

but it ugly

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

No branches or pull requests

1 participant