Re: [chromium-dev] Linux build instructions deleted from chromium wiki

2009-12-05 Thread Antoine Labour
On Fri, Dec 4, 2009 at 9:40 PM, Mark Larson (Google) m...@chromium.orgwrote:

 The LinuxBuildInstructions got deleted from the Wiki:
 http://code.google.com/p/chromium/source/detail?r=1495

 Anyone know why?

 I restored them. Someone on IRC mentioned that they were using them, but
 then they disappeared, so I assume they were still useful as of yesterday.

 FYI,
 Mark


There's no good reason they should be deleted.
Either it's malicious or it's a mishap.

Antoine

-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev

[chromium-dev] event.target is a copy of the element and doesn't validate with an equality test Options

2009-12-05 Thread nachumk
Hi,

I hope this is the right forum for this question...
I am using Chrome Dev 4.0.249.25.

I am creating a small floating menu and I want to detect when someone
clicks outside of it. The way I detect if someone clicks out of the
menu is by registering a window click event (window.addEvent...
('click')) and I test if event.target is equal to the original menu
object (or a child of it). This worked on the Chrome beta version
that
I previously installed, but now with the dev version I see that the
event is not the original event element but some type of copy that no
longer validates with a (event.target == paramElement).

sample code:
//creating menu:
var menu = document.createElement('div');
myAddChildren(menu);
window.addEventListener('click', function(event) { removeMenu(event,
menu); }, false);
document.body.appendChild(menu);

//removing menu:
function removeMenu(event, menu) {
 //event.target is never equal to menu even when it should be!!!
if((event.target == menu) || (myIsChild(menu, event.target)))
 return //don't remove if click is on menu itself or a child of menu
window.removeEventListener('click', arguments.callee.caller, false);
document.body.removeChild(menu);

I also noticed that if I add a custom variable to the menu object it
doesn't show up under event.target when clicked. I have also verified
that the element clicked is the actual menu as opposed to a child. I
can verify this via the className which is set to the menu class type.
The test that previously passed and *** should *** pass is
(event.target == menu).

The effect is that I want the menu to stay open so long as I've not
clicked out of it. A click inside of it should keep it open. I know
this sounds strange and it's not the way it will be in the end, but
it's important for now.

Thanx,
nachum

-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev


[chromium-dev] enabling javascript strict warnings and errors?

2009-12-05 Thread nachumk
Hi,

I'm using Chrome 4.0.249.25.

Is there a way to enable chrome's javascript to be more verbose and
to
break on errors such as an undeclared variable (i don't want to
implicity declare them)?

Thanx,
nachum

-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev


Re: [chromium-dev] enabling javascript strict warnings and errors?

2009-12-05 Thread Erik Corry
2009/12/5 nachumk nach...@gmail.com:
 Hi,

 I'm using Chrome 4.0.249.25.

 Is there a way to enable chrome's javascript to be more verbose and
 to
 break on errors such as an undeclared variable (i don't want to
 implicity declare them)?

Not in Chrome.

You might want to look into the JS compiler
http://closure-compiler.appspot.com/home
http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html


 Thanx,
 nachum

 --
 Chromium Developers mailing list: chromium-dev@googlegroups.com
 View archives, change email options, or unsubscribe:
    http://groups.google.com/group/chromium-dev


-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev


[chromium-dev] Re: enabling javascript strict warnings and errors?

2009-12-05 Thread nachumk
On Dec 5, 3:48 pm, Erik Corry erik.co...@gmail.com wrote:
 2009/12/5 nachumk nach...@gmail.com:

  Hi,

  I'm using Chrome 4.0.249.25.

  Is there a way to enable chrome's javascript to be more verbose and
  to
  break on errors such as an undeclared variable (i don't want to
  implicity declare them)?

 Not in Chrome.

 You might want to look into the JS 
 compilerhttp://closure-compiler.appspot.com/homehttp://googlecode.blogspot.com/2009/11/introducing-closure-tools.html





  Thanx,
  nachum

  --
  Chromium Developers mailing list: chromium-dev@googlegroups.com
  View archives, change email options, or unsubscribe:
     http://groups.google.com/group/chromium-dev

Thanx for the quick response. Do you know what flags can be used with
chrome's startup switch js-flags, or where that documentation exists?

nachum

-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev


Re: [chromium-dev] event.target is a copy of the element and doesn't validate with an equality test Options

2009-12-05 Thread Evan Martin
Generally, the decision tree for this sort of thing is:

1) Does it also happen in Firefox and IE?
If yes: not a bug.
2) Does it happen in one of Firefox or IE?
If yes: probably not a bug, might wanna bring it up if the behavior
seems really broken.
3) Does it happen in Safari but not Firefox/IE?
If yes: WebKit bug.  See their bug reporting guidelines:
http://webkit.org/quality/reporting.html
4) Does it happen in only Chrome, but not any of the above browsers?
If yes: file a Chrome bug.

I should put this up on the dev site somewhere.  The short answer to
your question is that no, this isn't the right forum, but I can't
blame you for not knowing that.  :)

On Sat, Dec 5, 2009 at 9:32 AM, nachumk nach...@gmail.com wrote:
 Hi,

 I hope this is the right forum for this question...
 I am using Chrome Dev 4.0.249.25.

 I am creating a small floating menu and I want to detect when someone
 clicks outside of it. The way I detect if someone clicks out of the
 menu is by registering a window click event (window.addEvent...
 ('click')) and I test if event.target is equal to the original menu
 object (or a child of it). This worked on the Chrome beta version
 that
 I previously installed, but now with the dev version I see that the
 event is not the original event element but some type of copy that no
 longer validates with a (event.target == paramElement).

 sample code:
 //creating menu:
 var menu = document.createElement('div');
 myAddChildren(menu);
 window.addEventListener('click', function(event) { removeMenu(event,
 menu); }, false);
 document.body.appendChild(menu);

 //removing menu:
 function removeMenu(event, menu) {
  //event.target is never equal to menu even when it should be!!!
 if((event.target == menu) || (myIsChild(menu, event.target)))
  return //don't remove if click is on menu itself or a child of menu
 window.removeEventListener('click', arguments.callee.caller, false);
 document.body.removeChild(menu);

 I also noticed that if I add a custom variable to the menu object it
 doesn't show up under event.target when clicked. I have also verified
 that the element clicked is the actual menu as opposed to a child. I
 can verify this via the className which is set to the menu class type.
 The test that previously passed and *** should *** pass is
 (event.target == menu).

 The effect is that I want the menu to stay open so long as I've not
 clicked out of it. A click inside of it should keep it open. I know
 this sounds strange and it's not the way it will be in the end, but
 it's important for now.

 Thanx,
 nachum

 --
 Chromium Developers mailing list: chromium-dev@googlegroups.com
 View archives, change email options, or unsubscribe:
    http://groups.google.com/group/chromium-dev


-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev


[chromium-dev] I use Chrome 4 in Ubuntu 9.10, I found the Chinese font text is too vague

2009-12-05 Thread Blade
Especially the text on buttons, Chinese characters, are very vague.
How can I solve this problem?

-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev