PDA

View Full Version : ExtJS 4.1 RC2: 'enableQuickTips' configuration in Ext.application not working



abcdef
4 Apr 2012, 10:07 AM
When I have 'enableQuickTips' set to true in Ext.application, I get the following error and nothing renders:

TypeError: 'undefined' is not an object (evaluating 'style[hook.name] = value')

Works fine when I set it to false. Very basic code:

app.js:



Ext.Loader.setConfig({
enabled: true,
paths: {
'Ext': 'behavior/lib/extjs41/src'
}
});

Ext.application({
name: 'S',
appFolder: 'behavior/app',
autoCreateViewport: true,
enableQuickTips: true,
launch: function() {
}
});


Viewport.js:



Ext.define('S.view.Viewport', {
extend: 'Ext.container.Viewport',
layout: 'fit',
componentCls: 'viewport',
items: {
xtype: 'panel',
html: 'test'
},
initComponent: function() {
var me = this;
me.initConfig();
me.callParent(arguments);
return me;
}
});

skirtle
4 Apr 2012, 12:05 PM
I suspect the root cause of all your RC2 explosions is probably the same thing. I couldn't reproduce this one either. You're either going to have to create a complete test case or extract more information using a debugger.

abcdef
4 Apr 2012, 12:49 PM
I suspect the root cause of all your RC2 explosions is probably the same thing. I couldn't reproduce this one either. You're either going to have to create a complete test case or extract more information using a debugger.

Ok so I saw more information with this one in Firebug:



[E] Cannot init QuickTipManager: no document body










msg
"Cannot init QuickTipManager: no document body"



sourceClass
"Ext.tip.QuickTipManager"



sourceMethod
"init"





log (message="[E] Cannot init QuickTipManager: no document body") ext-all-dev.js (line 10935)


Ext.Base.raise(err=Object { sourceClass=
"Ext.tip.QuickTipManager"
, sourceMethod=
"init"
, msg=
"Cannot init QuickTipManager: no document body"
}) ext-all-dev.js (line 10120)


Ext.tip.QuickTipManager#init(autoRender=
undefined
, config=
undefined
) - ext-all-dev.js (line 141894)




Ext.app.Application#onBeforeLaunch()ext-all-dev.js (line 142191)


(?)()ext-all-dev.js (line 142164)


createSingle()ext-all-dev.js (line 13940)


Ext.Base#fire()ext-all-dev.js (line 14093)


fire()ext-all-dev.js (line 14293)


fireReadyEvent()ext-all-dev.js (line 14391)


onDocumentReady(fn=function(), scope=Object { name=
"S"
, appFolder=
"behavior/app"
, autoCreateViewport=
true
, more...}, options=Object { single=
true
}) - ext-all-dev.js (line 14414)


fn()ext-all-dev.js (line 9692)


triggerReady()ext-all-dev.js (line 9678)


require(expressions=
[
"Ext.util.Point",
"Ext.ComponentManager",
"Ext.Shadow", 80 more...]
, fn=function(), scope=Object { isInHistory={...}, history=[1], config={...}, more...}, excludes=
undefined
) - ext-all-dev.js (line 9511)


triggerReady()ext-all-dev.js (line 9666)


refreshQueue()ext-all-dev.js (line 9152)


refreshQueue()ext-all-dev.js (line 9182)


onFileLoaded(className=
"S.view.Viewport"
, filePath=
"behavior/app/view/Viewport.js"
) - ext-all-dev.js (line 9583)


(?)()ext-all-dev.js (line 2951)



onLoadFn()

uncaught exception: Cannot init QuickTipManager: no document body

Does that help?

abcdef
5 Apr 2012, 1:35 PM
OK. So the problem seems to be at line 141891 @ ext-all-dev.js:



if (tipConfig.renderTo.tagName != 'BODY')


The HTML document has 'body' instead. Hence the error.

Our underlying framework generates an XHTML document; is there any particular reason why a case-insensitive comparison is being avoided here?

abcdef
6 Apr 2012, 9:11 AM
Any ideas here please? I need to get my current app running on 4.1 by next week, and I'm still stuck at the very beginning! Any help is much appreciated!

abcdef
9 Apr 2012, 8:54 AM
Any ideas anyone on this?

abcdef
12 Apr 2012, 1:04 PM
skittle mentioned in my post - http://www.sencha.com/forum/showthread.php?193009-ExtJS-4.1-title-configuration - that this issue is fixed in EXTJSIV-5920. I'll close this one for now. I'll play around with the build and report back if I find more problems. Thanks all!