JS-Wiring -- Injecting already instantiated objects #2

wants to merge 1 commit into

1 participant


Hey Jason,

When I was at LMI we ran across a scenario where we needed to use the Wiring framework to inject an already instantiated object without the Wiring framework trying to expand its properties. We solved this issue by modifying the "expand" method to check if the value is a function and if so to just call the function and return the result. This allowed us to arbitrarily inject any object we wanted to by just wrapping it in a function.

I noticed that this functionality never got committed back to the project. I've submitted a patch with this change plus a unit test to go along with it.

Hope all is well with you over at Sencha. Oh BTW when are we going to get a preview release of this ExtJs 4.0? I can't wait to get my hands on it ;)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment