Thanks Libing. This worked. My use-case is the same content-type (_javascript_). Its a RulesEngine app for which you author custom rules in the _javascript_. The rules runtime injects some objects based on the rules-context that are not visible during the rules authoring. So, I am registering content-assist for those rules-objects and everytime the user opens a different rule, I need to pull the different set of rules-objects to register and before doing to unrigister earlier ones which are not applicable.
-------------------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------------------------------------------------------------------------------------------------------