tylerdavis / wami-recorder

Automatically exported from code.google.com/p/wami-recorder
0 stars 0 forks source link

gui.js - recorder callback doesn't exist after initialize #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load the gui in a predefined div Container per XHR
2. Everything is fine :)
3. Load again and the following error occurs
function delegateWamiAPI() {
        var recorder = document.getElementById(_options.id);

        function delegate(name) {
            Wami[name] = function() {
                           return recorder[name].apply(recorder, arguments); 
            }

Uncaught TypeError: Cannot call method 'apply' of undefined recorder.js:185
Wami.(anonymous function) recorder.js:185
window.onblur gui.js:178

What is the expected output? What do you see instead?
Excpected is the gui, instead nothing appears cause of the error.

What version of the WAMI recorder are you using? What version of Flash are
you using?  In what browser?  On what operating system?
latest

Describe your server-side set-up if it is relevant to this issue.  What
type of web server are you using?  Where is your Wami.swf hosted?  What URL
do you put in startRecording?  What URL do you put in startPlaying?

Please provide any additional information below.

Seems that recorder[name] is not defined at this point of time.

Original issue reported on code.google.com by MeisterE...@googlemail.com on 26 Dec 2013 at 7:05