xNUTs / episodes

Automatically exported from code.google.com/p/episodes
Apache License 2.0
0 stars 0 forks source link

Episodes 2 example page measure method doesn't work as expected #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open Chrome web inspector/other JavaScript console
2. Visit http://stevesouders.com/episodes2/ex1.html

What is the expected output? What do you see instead?
 - Should not see any errors show up.  Instead, the following is logged to the console:
    Error: episodeName is undefined in EPISODES.measure.

What version of the product are you using? On what operating system?
  - 0.2 on MacOS X, Chrome 19.0.1084.46

Please provide any additional information below.
  - Appears to be a bug with the example page, and not with Episodes itself.  In the head of the sample page the following code exists:

EPISODES.measure = function(en, st, en) { EPISODES.q.push( ["measure", en, st, 
en || new Date().getTime()] ); };

The 'en' variable is used twice, causing episodes to not to be able to 
distinguish between the episode name and the end time.

Original issue reported on code.google.com by saet...@gmail.com on 24 May 2012 at 8:43