Re: [JSMentors] How to restore Object.prototype.hasOwnProperty if it has been overwritten?

2011-08-27 Thread Oleg Slobodskoi
s from the original JSMentors Mailman list: > http://www.mail-archive.com/jsmentors@jsmentors.com/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/jsmentors@googlegroups.com/ > > To unsubscribe from

Re: [JSMentors] client-side development environment

2011-03-14 Thread Oleg Slobodskoi
Hi, here is my attempt to this problem: https://github.com/kof/node-ams Currently work in progress, but is already in use and works for lots of usecases. It is plugin-enabled build tool with expressive jquery-like api and a bunch of preprocessors, for minifying, adding vendor prefixes for css,

Re: [JSMentors] Javascript scroll direction detection

2011-01-29 Thread Oleg Slobodskoi
just compare scrollTop values while scrolling. Don't forget to use timeout or helper function like this https://gist.github.com/789765 Because scroll event is fired depending on browser and scroll speed very often, f.e. every 20 ms. 2011/1/29 Varun > You can trac

Re: [JSMentors] Re: Dependency management through runtime code reflection

2011-01-21 Thread Oleg Slobodskoi
hich is in work. 2011/1/22 Andrew Stein > You can take your Methadone code and run it in any JS environment > without preprocessing or async script loading. That's the whole > point. > > > On Jan 21, 5:30 pm, Oleg Slobodskoi wrote: > > What I mean is if you can&

Re: [JSMentors] Re: Dependency management through runtime code reflection

2011-01-21 Thread Oleg Slobodskoi
;ll fix those. > > On Jan 21, 3:51 pm, Oleg Slobodskoi wrote: > > Nice to see people have the same problems like me :) > > > > I am working on a similar module, it is not ready yet, but I would like > to > > give you my opinion about methadone. > > > > 1. The m

Re: [JSMentors] Dependency management through runtime code reflection

2011-01-21 Thread Oleg Slobodskoi
Nice to see people have the same problems like me :) I am working on a similar module, it is not ready yet, but I would like to give you my opinion about methadone. 1. The most bad part is you class like declarations. At this point you are completely changing the way to write javascript, don't d

Re: [JSMentors] jslint "Move all 'var' declarations to the top of the function." is now a critical error

2011-01-15 Thread Oleg Slobodskoi
disagree in every your point :) 1. if your variable name is "thing" in both cases, then you are talking about the "thing", it is the same subject, so either your naming is wrong or this is semantically correct to define it once. 2. your copy paste problem is can't be seriously considered. 1

Re: [JSMentors] Re: jslint "Move all 'var' declarations to the top of the function." is now a critical error

2011-01-14 Thread Oleg Slobodskoi
need more linter? https://github.com/kof/node-linter build for nodejs, uses jslint, closure-linter, closure-compiler provides a unified configuration json and unified reporting has api and command line its a kind of linter framework, you can easily add even more linter. 2011/1/14 cancel bubb