-
19 Nov 2011 7:06 AM #1
Can't create an instance of a plugin with Ext.PluginManager.create
Can't create an instance of a plugin with Ext.PluginManager.create
Things seem to be very fishy with the whole plugin framework in Touch 2. Try registering a plugin with Ext.preg, e.g.:
and then creating an instance of it:Code:Ext.preg('pullrefresh', Ext.plugins.PullRefreshPlugin);
and you get an error. If you look at sources for PluginManager.registerType and PluginManager.create, the reason becomes obvious. registerType registers plugin information only locally within PluginManager class but "create" tries to use Ext.createByAlias to create an instance.Code:Ext.PluginManager.create({ptype:'pullrefresh'})--
Rahul Singla
-
19 Nov 2011 12:47 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,085
- Vote Rating
- 453
Thank you for the report. We are still on PR2 so we should expect not everything to work but this will get fleshed out very soon.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
19 Nov 2011 9:27 PM #3
I understand Mitchell...
--
Rahul Singla
-
5 Dec 2011 10:58 AM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,658
- Vote Rating
- 14
This is fixed in the next release. Though PullToRefresh specifically isn't quite complete yet.
-
5 Dec 2011 1:53 PM #5
Okay, thanks for the update Jamie!!
--
Rahul Singla
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1064
in
2.0.


Reply With Quote