Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.Ajax.request({
- success: function(response) {
- var s = response.responseText;
- s = s.replace('Ext.define', 'MyApp.define');
- eval(s);
- }
- });
- MyApp = {
- define: function(className, body) {
- delete body.requires;
- delete body.mixins;
- delete body.uses;
- Ext.define(null, Ext.apply({
- override: className
- }, body));
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement