djreed

San Francisco, CA

Jan
31
awarded Notable Question
May
30
awarded Nice Question
Mar
15
awarded Tumbleweed
Mar
8
comment visibility hidden flashes multiple times after fadeIn
One additional tip: You should likely be using CSS3 Animation for this instead :) My suggestion would be simplify your JS greatly and avoid using JS animation entirely. The solution would instead turn a CSS class on or off depending on your condition. the CSS could handle all the animation for you! Read up on it: developer.mozilla.org/en-US/docs/CSS/Tutorials/…
Mar
8
comment visibility hidden flashes multiple times after fadeIn
Just updated me answer to include a better solution. Go take a look and see if that achieves what you're looking for.
Mar
8
revised visibility hidden flashes multiple times after fadeIn
added 100 characters in body
Mar
8
answered visibility hidden flashes multiple times after fadeIn
Mar
7
awarded Famous Question
Mar
1
awarded Yearling
Dec
20
awarded Good Question
Jul
31
awarded Popular Question
Jun
11
comment Safely defining variables for public callback functions in javascript
Can you explain why you've added the function onYouTubePlayerAPIReady? This function is already defined as yt.video.prototype.onPlayerReady
Jun
11
comment Safely defining variables for public callback functions in javascript
Thanks for your response! This is a clever idea. If I wanted to avoid modifying window for this, can you think of any other solution? I guess I am stuck with this approach if the API assumes the window.onYouTubePlayerAPIReady, correct?
Jun
11
comment Safely defining variables for public callback functions in javascript
Thanks for your response! I had given bind a try actually. this.onPlayerReadyListener = goog.bind(this.onPlayerReady, this); does not seem to work. this.video is still undefined from within yt.video.prototype.onPlayerReady. Any idea why?
Jun
11
revised Safely defining variables for public callback functions in javascript
added 500 characters in body
Jun
11
asked Safely defining variables for public callback functions in javascript
Apr
19
comment Google Closure bind / resolve issues with the this keyword
Also, do not put your goog.require() statements in the same script tag as the entry point to code that uses the goog.required functions or classes. A goog.require() call adds code to the document after the script tag containing the call. More: developers.google.com/closure/library/docs/gettingstarted
Apr
19
comment Object Oriented Javascript and Multiple DOM Elements
Thank you. That was the next question I was going to ask actually - and I agree it seems more appropriate to instantiate each carousel individually. Thanks for demonstrating! One follow-up question re: binding these methods to 'this'. I found this (stackoverflow.com/questions/6527192/…). The answer states that you should normally be able to bypass using goog.bind (Closure handles it for you). So, how might I structure this differently to avoid binding events?
Apr
19
accepted Object Oriented Javascript and Multiple DOM Elements
Apr
19
asked Object Oriented Javascript and Multiple DOM Elements
1 2 3 4