mojito
mojito copied to clipboard
Calling Do.Halt in mojito plugins prevents other plugins from hooking into the RS
I want to access yui-lang
type resources and their yui.name
but this: https://github.com/yahoo/mojito/blob/develop/lib/app/addons/rs/yui.js#L545
won't let me. Please find another way to return the resource and prevent the host method from executing. Maybe neutralize the host method? Maybe use Do.Prevent
?
/cc @drewfish
I'm investigating a way to plug into the yui plugin but it proves tricky as afterHostMethod cannot be used on methods that are already used to wrap around a host method: https://github.com/yui/yui3/issues/1297
@jarnoux You can solve your problem by using after('addResourceVersion')
yes? If so that lowers the priority of this issue, though we should still look at why addons/rs/yui is doing a Do.Halt
.
addResourceVersion solves my problem
J.
On Thu, Oct 10, 2013 at 2:14 PM, Drew Folta [email protected] wrote:
@jarnoux You can solve your problem by doing
after('addResourceVersion')
yes? If so that lowers the priority of this issue, though we should still look at why addons/rs/yui is doing aDo.Halt
.Reply to this email directly or view it on GitHub: https://github.com/yahoo/mojito/issues/1261#issuecomment-26092353