On 2/6/11, jdalton john.david.dal...@gmail.com wrote:
@Lasse Reichstein
The test checks whether the value set as innerHTML is the same as
the one read back afterwards. There is nothing that suggests that
this must be the case. The formatting of the values read from innerHTML
is not specified.
On 2/7/11, Asen Bozhilov asen.bozhi...@gmail.com wrote:
Dmitry A. Soshnikov :
http://dmitrysoshnikov.com/notes/note-4-two-words-about-hoisting/
Excellent article.
The most interesting example for me was:
// a.js
function foo() {
alert(1);
}
foo(); // 2 ?
// b.js
function foo()
On 2/5/11, אריה גלזר arieh.gla...@gmail.com wrote:
Hey.
I'm modifying an input's value/state through JS, and I wanted to know if
there's a way to make it trigger the change event.
Oh, so you wanna set checked and then somewhere else subscribe to
something like CheckboxStateChanged (gecko).
On 2/6/11, jdalton john.david.dal...@gmail.com wrote:
But I wanted to point out that unlike in IEs there's not any problem(s)
with innerHTML in Chrome nor in Safari nor in Firefox nor in Opera. Only
in Microsoft's Internet Explorer(s).
Not so, while working on FuseJS (I also see checks in
On 2/6/11, אריה גלזר arieh.gla...@gmail.com wrote:
On Sun, Feb 6, 2011 at 6:15 PM, Diego Perini diego.per...@gmail.com wrote:
On W3C browsers you should be able to capture the change event
without problems.
IMO this is not a bubble/capture problem ( just verified -
On 2/4/11, mcot atm1...@gmail.com wrote:
I am currently seeing some weird behavior with the global object:
console.log(window.foo); // this returns undefined
console.log(this.foo);// this returns undefined
As expected, getting a property off an object, the prototype chain is
On 2/4/11, mcot atm1...@gmail.com wrote:
Hi. I am still reading up on this but here are some more tests I have
run:
console.log(typeof(foo) === 'undefined'); // true -- doesn't raise
reference error.
foo; // reference
error
On 2/4/11, Lasse Reichstein reichsteinatw...@gmail.com wrote:
On Fri, Feb 4, 2011 at 7:13 PM, Michael Haufe (TNO) t...@thenewobjective.com
wrote:
[...]
It's generally faster to access the characters directly on the primitive
string value, e.g.,
var s = myString;
alert(s[2]); // 'S'
On 2/3/11, Guillaume Andrieu gh...@taleo-initiative.org wrote:
Hi Garrett.
In 2007 I started reviewing YUI and moved on to prototype.js, Dojo,
jQuery, Mootools, Ext-js, Sencha, and others. They all have different
problems but the common problematic themes seem to be interdependency,
being
On 2/3/11, Ryan Grove r...@wonko.com wrote:
On Thu, Feb 3, 2011 at 9:35 AM, Garrett Smith dhtmlkitc...@gmail.com
wrote:
And I've filed well over a dozen bugs on YUI. I've submitted patches
and even forked YUI so that I could help with that (my Github username
is GarrettS) YUI bugs didn't get
On 2/3/11, Ryan Grove r...@wonko.com wrote:
On Thu, Feb 3, 2011 at 7:45 PM, Garrett Smith dhtmlkitc...@gmail.com
wrote:
http://yuilibrary.com/projects/yui2/ticket/1922892
Patched that myself too.
I can't speak for anyone else, but the insulting tone you used in the
comment on this ticket
On 2/3/11, Ryan Grove r...@wonko.com wrote:
On Thu, Feb 3, 2011 at 7:45 PM, Garrett Smith dhtmlkitc...@gmail.com
wrote:
http://yuilibrary.com/projects/yui2/ticket/1922892
Patched that myself too.
I can't speak for anyone else, but the insulting tone you used in the
comment on this ticket
On 2/1/11, cancel bubble cancelbub...@gmail.com wrote:
http://harry.me/2011/01/27/today-web-development-sucks/
The author of that article is not very well informed. The suggestions,
if taken seriously, are potentially.
The core of the problem revolves around the most exciting domain in web
On 2/2/11, Garrett Smith dhtmlkitc...@gmail.com wrote:
On 2/1/11, cancel bubble cancelbub...@gmail.com wrote:
http://harry.me/2011/01/27/today-web-development-sucks/
The author of that article is not very well informed. The suggestions,
if taken seriously, are potentially.
potentially
On 1/31/11, RobG rg...@iinet.net.au wrote:
On Feb 1, 3:32 am, Anton Podviaznikov podviazni...@gmail.com wrote:
[]\
2. I extended native FIle and FileError objects. Is it normal? Is it
good style? How you will do this?
Extending a host object is a bad idea.
It is generally not a
On 1/27/11, Sven Lito m...@svenlito.com wrote:
+1 on VIM.
TextMate is pretty decent too
Those are text editors not IDEs. While some may prefer a text editor,
it is not an IDE.
AN IDE like Eclipse and Intelli-j is for developer to build, test,
compile projects. It usually has features like
On 12/20/10, Michael Allan michaelal...@optushome.com.au wrote:
Hi All,
[...]
Mentors who are participating - it's a veritable Who's Who of the javascript
world here, and I'm thrilled to be participating :-)
I rather focus on ideas, concepts, and arguments than trying to uphold
any individual
On 1/22/11, Daniel Donaldson d8nieldonald...@gmail.com wrote:
i'm trying to change the width of the dragged item on stop, which
seems like it should be easy, but when i add a function on the stop
event things get all screwy.
i've got it on jsfiddle: http://jsfiddle.net/d8nieldonaldson/smYeh/
On 1/12/11, jdalton john.david.dal...@gmail.com wrote:
@Balázs Galambosi:
I detect the scroll element in FuseJS using something similar to:
http://dl.dropbox.com/u/513327/scrollel/quirks.html
http://dl.dropbox.com/u/513327/scrollel/standards.html
So you add a div, set it to be 1px tall,
On 1/20/11, Steven Yang kenshin...@gmail.com wrote:
Hi
as I remembered a while ago maybe at jQuery 1.2x or 1.3x, people recommended
using .find or $(selector, context), one thing is simply because .find was
just faster. Then I think it was John himself said that they both should do
the same
On 1/21/11, Garrett Smith dhtmlkitc...@gmail.com wrote:
On 1/20/11, Steven Yang kenshin...@gmail.com wrote:
Hi
as I remembered a while ago maybe at jQuery 1.2x or 1.3x, people
recommended
using .find or $(selector, context), one thing is simply because .find
was
just faster. Then I think
On 1/21/11, Andrew Stein steinl...@gmail.com wrote:
My employer, Benchmark Solutions, has released this open source
framework y'all may enjoy:
https://github.com/benchmark-solutions/methadone
[...]
There are some existing bugs and questionable design decisions, but we
would love
On 1/17/11, Miller Medeiros lis...@millermedeiros.com wrote:
On Mon, Jan 17, 2011 at 10:54 PM, Diego Perini
diego.per...@gmail.comwrote:
On Mon, Jan 17, 2011 at 11:52 PM, Miller Medeiros
lis...@millermedeiros.com wrote:
$('#my-check-box').attr('checked', true); - should work cross
On 1/18/11, fernando trasvina trasv...@gmail.com wrote:
On Jan 18, 2011, at 2:04 PM, Garrett Smith wrote:
On 1/17/11, Miller Medeiros lis...@millermedeiros.com wrote:
On Mon, Jan 17, 2011 at 10:54 PM, Diego Perini
diego.per...@gmail.comwrote:
On Mon, Jan 17, 2011 at 11:52 PM, Miller
On 1/18/11, fernando trasvina trasv...@gmail.com wrote:
On Jan 18, 2011, at 6:31 PM, Garrett Smith wrote:
On 1/18/11, fernando trasvina trasv...@gmail.com wrote:
On Jan 18, 2011, at 2:04 PM, Garrett Smith wrote:
On 1/17/11, Miller Medeiros lis...@millermedeiros.com wrote:
On Mon, Jan 17
On 1/18/11, RobG rg...@iinet.net.au wrote:
On Jan 19, 6:03 am, fernando trasvina trasv...@gmail.com wrote:
On Jan 18, 2011, at 12:15 PM, Miller Medeiros wrote:
On Tue, Jan 18, 2011 at 9:47 AM, Diego Perini diego.per...@gmail.com
wrote:
$('#my-check-box').attr('checked', true);
On 1/16/11, Shawn Stringfield shawn.stringfi...@gmail.com wrote:
I'm actually experimenting with localStorage and cookies. When a user comes
to a page, I will give them the option of seeing the page layout with
thumbnails vs. details of images. The layout is based on them clicking a
checkbox
On 1/17/11, Miller Medeiros lis...@millermedeiros.com wrote:
since in your case it seems to be just one, I would just store a single
cookie with the name of the setting and since you are already using jQuery
search for a cookie plugin,
JQ plugins are not known for robust. And they tend to have
On 1/15/11, And Clover and-...@doxdesk.com wrote:
On Fri, 2011-01-14 at 10:12 -0800, cancel bubble wrote:
I understand that it's good practice to declare all your vars at the
top of
your function
I disagree. This is one part of Crockford Dogma I think is badly
mistaken. It's a habit from
On 1/17/11, Garrett Smith dhtmlkitc...@gmail.com wrote:
On 1/15/11, And Clover and-...@doxdesk.com wrote:
On Fri, 2011-01-14 at 10:12 -0800, cancel bubble wrote:
\[...]
And if it matters, it is possible to make Crockford not be happy by
Correction:
it is possible to make Crockford
On 1/17/11, Ryan Grove r...@wonko.com wrote:
On Mon, Jan 17, 2011 at 1:50 PM, And Clover and-...@doxdesk.com wrote:
On Sat, 2011-01-15 at 17:38 -0800, Ryan Grove wrote:
[...]
I agree with you that it would be nice to be able to keep variable
declarations as close as possible to where those
On 1/16/11, SteveYoungGoogle stephen.jo...@googlemail.com wrote:
On Jan 16, 4:15 am, Garrett Smith dhtmlkitc...@gmail.com wrote:
Specs, implementations, implementation docs (MDC, MSDN), and
programming books are too. But not javascript books; I don't know of
any that are good enough
On 1/15/11, SteveYoungGoogle stephen.jo...@googlemail.com wrote:
Well done! This looks like it will be *the* resource for people
wanting to learn JavaScript.
Interactive discussion is a great way to learn. Good communication can
go a long way towards facilitating clearer discussions
On 1/14/11, Andraž Kos andraz@gmail.com wrote:
On Fri, Jan 14, 2011 at 02:59, Garrett Smith dhtmlkitc...@gmail.com wrote:
I would remove that comment and rename that from args to something
like options.
term came from C language and we all know where args are born: command line.
When I
On 1/14/11, Gary Katsevman gary.katsev...@gmail.com wrote:
The reason why he doesn't like putting the var in the for loops has to
do with variable hoisting and non-block scope in javascript.
for(var i = 0; i 5; i++) {
print(i);
}
i; // undefined in java but 5 in javascript
That
On 1/11/11, Balázs Galambosi galambal...@gmail.com wrote:
2011/1/12 Garrett Smith dhtmlkitc...@gmail.com:
OK, I see that.
I have IE9 running in IE8 document mode. I am using resource monitor
and filtering for iexplore.exe. I am looking at the Memory live
graph as I navigate between pages. I
On 1/9/11, Michael Haufe (TNO) t...@thenewobjective.com wrote:
The jsmentors page mentions you are not employed atm. Have you
considered JS consulting and/or being a personal trainer for fitness?
Yes.
--
To view archived discussions from the original JSMentors Mailman list:
On 1/10/11, jdalton john.david.dal...@gmail.com wrote:
Yep. But is there a different result in standards mode?
That test case is in quirks mode.
Yes, I modified the test to switch between standards and quirks and it
leaks on both.
OK, I see that.
I have IE9 running in IE8 document mode. I
On 1/10/11, jdalton john.david.dal...@gmail.com wrote:
The reduced test case (using a single page refresh) is fine.
It shows evidence of the memory leak and it's removal.
Do a web search and you'll find posts of c.l.js that indicate otheriwse.
--
Garrett
--
To view archived discussions from
On 1/10/11, jdalton john.david.dal...@gmail.com wrote:
I'm busy. Misinformation's no good right? What should I do?
No worries. I am a night owl and created a test and a screencast.
Thanks!
http://screenr.com/UBz
Oh, I'm not saying there's not going to be a mem leak there between
pages,
On 1/7/11, Dmitry Soshnikov dmitry.soshni...@gmail.com wrote:
On Fri, Jan 7, 2011 at 10:46 AM, Mathias Bynens math...@qiwi.be wrote:
Let’s assume you’re working in the global scope already and you want
to create a new global variable. What do you guys recommend? Should
the `var` keyword be
On 1/6/11, Joe Lillibridge fwon...@gmail.com wrote:
On 6/01/2011, at 1:15 PM, Daniel Donaldson wrote:
i've got a couple of lists, and what i'd like to happen is when the
user clicks an item on the first list, the text from the clicked item
is appended to the text of a list item in the second
On 1/6/11, Peter van der Zee qfo...@gmail.com wrote:
On Jan 6, 10:28 pm, Bryan Forbes br...@reigndropsfall.net wrote:
So, you would do something like this when attaching the initial event,
right?:
if(typeof elem._id == undefined){
elem._id = generateEventHandlerID();
}
Indeed
When
On 1/3/11, Darth Vincent Binamira m...@darthbinamira.com wrote:
Hi,
I'm fairly new to JavaScript and found out about JsMentors from
ajaxian.com
Good.
as a vital resource for discussing and learning JS. Can anyone share some
good advice on getting started? I have a little experience in
On 12/31/10, Joe thewast...@gmail.com wrote:
Caching a property lookup is usually not really worth it*. Best
consideration for doing it anyways is clean code. But don't do it for
speed.
In terms of data access, object property lookup *is* slower than using
a local variable. Peter's right
On 1/1/11, Angus Croll anguscr...@gmail.com wrote:
Hi Joe,
Array is a constructor which is a function, and Function has no slice
function.
No, but in some implementations such as Mozillas', the Array
constructor has generic methods including `slice`.
var arr = Array.slice(arrayLike);
The
On 12/31/10, Marc Harter wav...@gmail.com wrote:
The thing is that (almost?) all explanations (I repeat -- books, articles,
etc) talked about `calling`, that is wrong. While the reason is that
parentheses at the end are not parentheses of a call (`Arguments`
production), but just a grouping
On 12/29/10, Ben Alman cow...@rj3.net wrote:
I just posted this article, in case anyone's interested in reading
about some wacky behavior in IE6-8 with try...catch.
http://weblog.bocoup.com/the-catch-with-try-catch
It’s like a whole new kind of hoisting, made extra-special just for
Internet
On 12/27/10, fernando trasvina trasv...@gmail.com wrote:
On Dec 26, 2010, at 5:30 PM, Garrett Smith wrote:
On 12/26/10, fernando trasvina trasv...@gmail.com wrote:
On Dec 26, 2010, at 2:36 AM, Garrett Smith wrote:
On 12/25/10, fernando trasvina trasv...@gmail.com wrote:
On Dec 24, 2010
On 12/25/10, Yu-Hsuan Lai rainco...@gmail.com wrote:
Will closure create references to every object outer even when I don't
explicitly use them?
example:
function outer () {
var div = document.createElement(div);
function inner() {
var a,b,c and do something blahblah
On 12/25/10, Balázs Galambosi galambal...@gmail.com wrote:
2010/12/25 Garrett Smith dhtmlkitc...@gmail.com:
In this case, I still have a memory leak?
Yes, you do. But what are you doing there?
Alright. Now I'm not sure what the real code in Yu's head looks like,
but when I first read I
On 12/24/10, Michael Haufe (TNO) t...@thenewobjective.com wrote:
On Dec 24, 3:05 pm, Garrett Smith dhtmlkitc...@gmail.com wrote:
I rather have it one way or the other. e.g.
makePoint(x, y);
- OR -
new Point(x, y);
I just don't like seeing any extra if/else in the code. I also don't
On 12/24/10, fernando trasvina trasv...@gmail.com wrote:
On Dec 24, 2010, at 6:43 PM, Garrett Smith wrote:
On 12/24/10, Michael Haufe (TNO) t...@thenewobjective.com wrote:
On Dec 24, 3:05 pm, Garrett Smith dhtmlkitc...@gmail.com wrote:
I rather have it one way or the other. e.g
On 12/24/10, Michael Haufe (TNO) t...@thenewobjective.com wrote:
On Dec 24, 6:43 pm, Garrett Smith dhtmlkitc...@gmail.com wrote:
The client of the API gets an interface object that has properties and
methods so instanceof and constructor shouldn't matter.
instanceof is important
Hey all,
I'm working on a unit testing framework for unit testing javascript
abstractions that run in browsers: domunit.
https://github.com/GarrettS/ape-javascript-library/downloads
The framework uses declarative style object literals for testing; each
test is property name that starts with
On 12/21/10, Scott Koon sc...@lazycoder.com wrote:
I've done this as well. Basically the legacy global functions turn into
functions that just forward on a call to my refactored code. I pull
everything out of the global function and put it into a namespaced object,
then call the namespaced
On 12/21/10, RobG rg...@iinet.net.au wrote:
On Dec 21, 7:25 am, raysaun ray.s...@gmail.com wrote:
I'm fairly new to JS with no formal training, but I try my best to be
conscientious...
I notice that in our code base lots of data gets shoved into the
browser's DOM. Is that a good idea? For
On 12/19/10, cihat altuntas cihat.altun...@gmail.com wrote:
I have beeing working on 20k Big Ball of Mud
http://www.laputan.org/mud/ legacy
javascript code base. It's a xml based custom ASP.NET web framework to
design and bind to database screens quickly to web pages.Almost there is
no
On 12/18/10, Juriy Zaytsev kan...@gmail.com wrote:
On Sun, Dec 19, 2010 at 2:02 AM, Garrett Smith
dhtmlkitc...@gmail.comwrote:
On 12/18/10, Ezequiel ezequ...@ziggyism.com wrote:
On Dec 17, 2:37 am, Juriy Zaytsev kan...@gmail.com wrote:
var beget = (function() {
function F
On 12/19/10, fernando trasvina trasv...@gmail.com wrote:
On Dec 19, 2010, at 2:17 AM, Garrett Smith wrote:
On 12/18/10, Juriy Zaytsev kan...@gmail.com wrote:
On Sun, Dec 19, 2010 at 2:02 AM, Garrett Smith
dhtmlkitc...@gmail.comwrote:
On 12/18/10, Ezequiel ezequ...@ziggyism.com wrote
On 12/19/10, fernando trasvina trasv...@gmail.com wrote:
On Dec 19, 2010, at 2:51 AM, Garrett Smith wrote:
On 12/19/10, fernando trasvina trasv...@gmail.com wrote:
On Dec 19, 2010, at 2:17 AM, Garrett Smith wrote:
On 12/18/10, Juriy Zaytsev kan...@gmail.com wrote:
On Sun, Dec 19, 2010
On 12/18/10, Balázs Galambosi galambal...@gmail.com wrote:
Learn interleaved reply; do not top post.
Ok, my friend :)
Thanks.
touchy
A more likely explanation is that the authors of Closure COmpiler do
not understand [[Scope]].
/touchy
In discussions with the CC team, I presented the
On 12/18/10, Marc Harter wav...@gmail.com wrote:
My name is Marc Harter (@wavded). I'm stationed in Eau Claire, WI and work
with JavaScript daily. Very glad this list is here, was turned off by
c.l.js spam and trolling
Can't remember seeing any posts from you there.
If you interpret a post
On 12/18/10, Ezequiel ezequ...@ziggyism.com wrote:
On Dec 17, 2:37 am, Juriy Zaytsev kan...@gmail.com wrote:
var beget = (function() {
function F(){ };
return function(o) {
F.prototype = o;
return new F;
};
})();
return new F;
Are there any penalties for not including
On 12/17/10, RobG rg...@iinet.net.au wrote:
On Dec 16, 5:35 am, Balázs Galambosi galambal...@gmail.com wrote:
I wonder if google groups is safe from spam... Just look what happened
to comp.lang.javascript
And who is to blame for that?
clj is not a Google Group, it is a Usenet news group.
On 12/17/10, Asen Bozhilov asen.bozhi...@gmail.com wrote:
Garrett Smith wrote:
Juriy Zaytsev wrote:
var beget = (function() {
function F(){ };
All good except for the extra empty statement there. AYK, semicolon is
not needed after the FD.
(AYK means as you know.)
I guess
On 12/16/10, Mark McDonnell storm.m...@gmail.com wrote:
Strange, I've received a bounce back message from jsmentors saying I'm not
a member even though I receive emails from them and have had responses to a
post I made?
I can see there is now a jsmentors@googlegroups.com email address
67 matches
Mail list logo