The pull to refresh plugin doesn't seem to work on devices when I compile & minify all JS files from Architect to one JS file. This is similar (but not exactly the same) as the issue found here

If I run the app (either in browser or on device using PhoneGap) uncompiled & not minified, the plugin works great, if I compile & minify everything into one JS file using Sencha CMD, a JS error occurs in app.js:
Uncaught TypeError: Cannot call method 'substring' of undefined

If I remove the PullToRefresh plugin from my code, everything works just fine after compiling & minifying. The plugin itself is setup very basic: all default settings, with a refreshFn containing just a simple console.log('refresh called');

full error as seen in console Google Chrome:
Code:
Uncaught TypeError: Cannot call method 'substring' of undefined app.js:1
Ext.ClassManager.parseNamespace app.js:1
Ext.ClassManager.get app.js:1
Ext.ClassManager.instantiate app.js:1
Ext.ClassManager.instantiateByAlias app.js:1
Ext.apply.factory app.js:1
Ext.define.applyPlugins app.js:1
j app.js:1
b.implement.initConfig app.js:1
Ext.define.constructor app.js:1
b.implement.callParent app.js:1
Ext.define.constructor app.js:1
b.implement.callParent app.js:1
Ext.define.constructor app.js:1
b.implement.callParent app.js:1
Ext.define.constructor app.js:1
f app.js:1
(anonymous function)
Ext.ClassManager.instantiate app.js:1
Ext.ClassManager.instantiateByAlias app.js:1
Ext.apply.factory app.js:1
Ext.define.factoryItem app.js:1
Ext.define.add app.js:1
Ext.define.applyItems app.js:1
j app.js:1
(anonymous function) app.js:1
Ext.define.applyActiveItem app.js:1
(anonymous function) app.js:1
b.implement.initConfig app.js:1
Ext.define.constructor app.js:1
b.implement.callParent app.js:1
Ext.define.constructor app.js:1
f app.js:1
(anonymous function)
Ext.ClassManager.instantiate app.js:1
Ext.ClassManager.instantiateByAlias app.js:1
Ext.apply.factory app.js:1
Ext.define.factoryItem app.js:1
Ext.define.add app.js:1
Ext.define.applyItems app.js:1
j app.js:1
(anonymous function) app.js:1
Ext.define.applyActiveItem app.js:1
(anonymous function) app.js:1
b.implement.initConfig app.js:1
Ext.define.constructor app.js:1
b.implement.callParent app.js:1
Ext.define.constructor app.js:1
f app.js:1
(anonymous function)
Ext.ClassManager.instantiate app.js:1
Ext.ClassManager.instantiateByAlias app.js:1
Ext.apply.factory app.js:1
Ext.define.factoryItem app.js:1
Ext.define.add app.js:1
Ext.define.applyItems app.js:1
j app.js:1
(anonymous function) app.js:1
Ext.define.applyActiveItem app.js:1
(anonymous function) app.js:1
b.implement.initConfig app.js:1
Ext.define.constructor app.js:1
b.implement.callParent app.js:1
Ext.define.constructor app.js:1
f app.js:1
(anonymous function)
Ext.ClassManager.instantiate app.js:1
Ext.ClassManager.instantiateByAlias app.js:1
Ext.apply.factory app.js:1
Ext.define.factoryItem app.js:1
Ext.define.add app.js:1
Ext.define.applyItems app.js:1
j app.js:1
(anonymous function) app.js:1
Ext.define.applyActiveItem app.js:1
(anonymous function) app.js:1
b.implement.initConfig app.js:1
Ext.define.constructor app.js:1
b.implement.callParent app.js:1
Ext.define.constructor app.js:1
f app.js:1
(anonymous function)
Ext.ClassManager.instantiate app.js:1
Ext.ClassManager.instantiateByAlias app.js:1
Ext.apply.factory app.js:1
Ext.define.factoryItem app.js:1
Ext.define.add app.js:1
Ext.define.applyItems app.js:1
j app.js:1
(anonymous function) app.js:1
Ext.define.applyActiveItem app.js:1
(anonymous function) app.js:1
b.implement.initConfig app.js:1
Ext.define.constructor app.js:1
b.implement.callParent app.js:1
Ext.define.constructor app.js:1
f app.js:1
(anonymous function)
Ext.ClassManager.instantiate app.js:1
(anonymous function) app.js:1
Ext.application.launch app.js:1
Ext.define.onDependenciesLoaded app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.define.loadControllerDependencies app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.define.onProfilesLoaded app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.define.constructor app.js:1
f app.js:1
b.onReady app.js:1
Ext.apply.onDocumentReady app.js:1
o app.js:1
Ext.apply.onReady app.js:1
Ext.onReady app.js:1
g app.js:1
Ext.define.doAddListener app.js:1
Ext.define.changeListener app.js:1
Ext.define.addListener app.js:1
(anonymous function) app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
(anonymous function) app.js:1
b app.js:1
h app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
b app.js:1
h app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
b app.js:1
h app.js:1
(anonymous function) app.js:1
b app.js:1
h app.js:1
b app.js:1
h app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
(anonymous function) app.js:1
Ext.apply.require app.js:1
(anonymous function) app.js:1
Ext.apply.factoryConfig app.js:1
(As the file is minified, everything is on one line; this makes it hard to debug as Chrome just gives the linenumber (1) the problem occurs on)