PDA

View Full Version : _2 has no properties Ext.menu.MenuMgr



leveille
4 Aug 2007, 12:35 PM
Long time lurker, first time poster. Awesome product.

I am using Ext 1.1 Stable, building an HtmlEditor as a component w/in a LayoutDialog. I receive the following error when I click in the textArea of the HtmlEditor:

_2 has no properties
ext-all.js
Line 166

Line 166 refers to the MenuMgr:

Ext.menu.MenuMgr=function(){var _1,_2,_3={},_4=false,_5=new Date();function init...

From what I can guess the application is having a difficult time passing my property list to the second parameter of the anonymous function. The offending code can be seen below (note: I don't receive this error and my application works fine if I remove any of the two properties highlighted in red below).



...
HtmlEditor = new Ext.form.HtmlEditor({
enableFontSize: false,
enableColors: false,
enableFont: false,
name: 'bai-body',
value: data
});

HtmlEditor.setSize(570, 310);
HtmlEditor.render('bai-center');
dialog.show(animate.dom);


I appreciate anyone taking the time to respond. And thanks to Jack and the Ext team for such an amazing product.

Snape
4 Aug 2007, 2:30 PM
What line number do you get if you use ext-all-debug.js? I guess it is related to hideAll method.

jay@moduscreate.com
4 Aug 2007, 3:23 PM
What line number do you get if you use ext-all-debug.js? I guess it is related to hideAll method.

search for: Ext.menu.MenuMgr=function()

leveille
4 Aug 2007, 4:14 PM
What line number do you get if you use ext-all-debug.js? I guess it is related to hideAll method.

NOTE: I may have misspoken in my original post. I am 99% certain the error is issued when I disable colors (enableColors: false) in my htmlEditor, but only when I disable colors.

You got it. It is related to the hideAll method.

active has no properties
ext-all-debug.js
Line 20525


function hideAll(){
if(active.length > 0){
var c = active.clone();
c.each(function(m){
m.hide();
});
}

brian.moeskau
4 Aug 2007, 9:13 PM
If you used the "build your own" page, this is probably related to a missing ColorMenu dependency. If so, this has been fixed and you should rebuild.

http://extjs.com/forum/showthread.php?p=51834

leveille
5 Aug 2007, 3:13 AM
If you used the "build your own" page, this is probably related to a missing ColorMenu dependency. If so, this has been fixed and you should rebuild.

Thanks for your time Brian.

The error I get happens even when I use ext-all.js, therefore it wasn't a dependancy issue. As I mentioned, it only happens when I set enableColors to false. If you are interested, you can see the entire function I am referencing by visiting post 10545 (http://extjs.com/forum/showthread.php?t=10545).

ravyn23259
9 Aug 2007, 12:40 PM
I'm having this same issue with a slight difference. I have multiple html editors in tabs. When the first editor has enableColors set to false, I get the _2 has no properties error on all my editors. When I comment that line out, leaving it alone on the other editors, I'm fine.

jon.whitcraft
13 Aug 2007, 6:07 AM
I am seeing the same problem too with i disable colors.

Check out this post for a fix. (http://extjs.com/forum/showthread.php?t=9614&highlight=MenuMgr) It seems to have been fixed in SVN to.