dwa012/html5-qrcode — pull request #6 by mgedmin (2014-03-24 14:41:49+00:00)
Title: Fix ReferenceError: localMediaStream

When 'use strict' is in effect, you cannot just assign to magic global
variables inside an anonymous function.

Define a local in the surrounding scope so that 'scan' and
'successCallback' can share it without relying on the global namespace.

Note: this bug affected only those using non-minified source, because
whatever minifier was used by the upstream to produce lib/html5-qrcode.min.js
stripped away the 'use strict' directive!