Re: What do you think about a C# 6 like nameof() expression for JavaScript.

2015-09-10 Thread Behrang Saeedzadeh
e new > name? > > Waldemar > -- Best regards, Behrang Saeedzadeh ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Finding elements that are hidden due to overflow: hidden

2015-09-04 Thread Behrang Saeedzadeh
or it > > will get blocked by an obstacle in front of it. So it seemed to me it > > probably should be feasible in HTML/CSS as well. > > "Feasible" and "sufficiently worthwhile to add to the web platform" > are, of course, two vastly different things. ^_^ > &g

Re: Finding elements that are hidden due to overflow: hidden

2015-09-03 Thread Behrang Saeedzadeh
should be feasible in HTML/CSS as well. On Thu, Sep 3, 2015 at 8:42 AM Tab Atkins Jr. <jackalm...@gmail.com> wrote: > On Tue, Aug 25, 2015 at 6:39 PM, Behrang Saeedzadeh <behran...@gmail.com> > wrote: > > Looks like at the moment DOM does not expose any properties that signif

Finding elements that are hidden due to overflow: hidden

2015-08-25 Thread Behrang Saeedzadeh
Hi, Looks like at the moment DOM does not expose any properties that signify whether an element has become hidden due to an *overflow: hidden *on their parent element. Any chance of adding this feature to DOM? -- Best regards, Behrang Saeedzadeh

Re: What do you think about a C# 6 like nameof() expression for JavaScript.

2015-08-08 Thread Behrang Saeedzadeh
Forgot to mention that nameof works with local variables too: function foo() { var aNum = 1; console.log(nameof(aNmum), aNum); } On Sat, Aug 8, 2015 at 10:38 AM Behrang Saeedzadeh behran...@gmail.com wrote: So basically we could use it like this: function aFunc(aParam) { throw new

Re: Maven like dependency management for browsers

2015-08-07 Thread Behrang Saeedzadeh
with or as part of this e-mail. You should employ virus checking software. Guardian News Media Limited is a member of Guardian Media Group plc. Registered Office: PO Box 68164, Kings Place, 90 York Way, London, N1P 2AP. Registered in England Number 908396 -- Best regards, Behrang Saeedzadeh

What do you think about a C# 6 like nameof() expression for JavaScript.

2015-08-07 Thread Behrang Saeedzadeh
. -- Best regards, Behrang Saeedzadeh ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Maven like dependency management for browsers

2015-08-07 Thread Behrang Saeedzadeh
...@gmail.com wrote: On 8/7/15, Behrang Saeedzadeh behran...@gmail.com wrote: Hi Sebastien, Guys — On Sun, Aug 2, 2015 at 10:38 PM Sébastien Cevey seb.ce...@guardian.co.uk wrote: [...] Versions can be specified either at the top-level config, or even at the import level, e.g

Re: Maven like dependency management for browsers

2015-07-31 Thread Behrang Saeedzadeh
grounds in userspace, with the intent for SystemJS to be the upcoming standard Module Loader. https://github.com/jspm/jspm-cli https://github.com/systemjs/systemjs On Thu, 30 Jul 2015 at 09:59 Behrang Saeedzadeh behran...@gmail.com wrote: Hi, Has this been discussed before? In a nutshell

Re: String.prototype.trimRight/trimLeft

2015-07-30 Thread Behrang Saeedzadeh
be probably be useful only to reduce GC pressure, because it's easily polyfilled. String.isNullOrWhiteSpace = (a)=a === null ? true : typeof a === 'string' !a.trim(); 2015-07-29 13:27 GMT+02:00 Behrang Saeedzadeh behran...@gmail.com: Another set of very handy functions that in Java

Re: Any opinions about adding a Ruby-like ||= operator to EcmaScript?

2015-07-30 Thread Behrang Saeedzadeh
I am not very fussed about the syntax as long as the facility is in the language. Any chance this gets included in EcmaScript 2016? On Wed, Jul 29, 2015 at 10:26 PM Claude Pache claude.pa...@gmail.com wrote: Le 29 juil. 2015 à 13:23, Behrang Saeedzadeh behran...@gmail.com a écrit

Maven like dependency management for browsers

2015-07-30 Thread Behrang Saeedzadeh
. This is just the core of the idea. Nothing new (already similar systems are available for Java, Node, .NET, Ruby, etc.) but this will bring it to the web. What do you think? -- Best regards, Behrang Saeedzadeh ___ es-discuss mailing list es-discuss@mozilla.org

Re: String.prototype.trimRight/trimLeft

2015-07-29 Thread Behrang Saeedzadeh
@mozilla.org https://mail.mozilla.org/listinfo/es-discuss -- Best regards, Behrang Saeedzadeh ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Any opinions about adding a Ruby-like ||= operator to EcmaScript?

2015-07-29 Thread Behrang Saeedzadeh
For example: obj.property ||= value; This would only assign value to obj.property if property is undefined or null. -- Best regards, Behrang Saeedzadeh ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Why the ECMAScript 2015 Promises don't have finally methods?

2015-07-04 Thread Behrang Saeedzadeh
Hi all, I was just wondering why `finally` didn't make it into the ECMAScript 2015 spec's Promises? They seem to me to be necessary for many use cases. -- Best regards, Behrang Saeedzadeh ___ es-discuss mailing list es-discuss@mozilla.org https

Re: Why the ECMAScript 2015 Promises don't have finally methods?

2015-07-04 Thread Behrang Saeedzadeh
-handler--promise It would be nice to resolve that properly before standardization. --scott -- Best regards, Behrang Saeedzadeh ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Element onResize and onMove events

2014-12-03 Thread Behrang Saeedzadeh
Hi, Are there any plans to add resize and movement event listeners for DOM elements? elem.addEventListener(move, function(e) { console.log(o.target.oldLocation); console.log(o.target.newLocation); }); Are there technical limitations why these events or not being defined for elements?

Re: Is Object.watch being standardizied?

2013-07-17 Thread Behrang Saeedzadeh
Thanks Rick! Cheers, Behrang Saeedzadeh http://www.behrang.org On Wed, Jul 17, 2013 at 2:18 PM, Rick Waldron waldron.r...@gmail.comwrote: On Wed, Jul 17, 2013 at 12:14 AM, Behrang Saeedzadeh behran...@gmail.comwrote: And if so, where in the spec docs can I read more about

Is Object.watch being standardizied?

2013-07-16 Thread Behrang Saeedzadeh
And if so, where in the spec docs can I read more about it? Cheers, Behrang Saeedzadeh http://www.behrang.org ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

AOP and JavaScript

2013-05-25 Thread Behrang Saeedzadeh
Hi all, Has there been any discussions about adding some AOP features (e.g. defining pointcuts and advices) to JavaScript? Cheers, Behrang Saeedzadeh http://www.behrang.org ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org