Browse Source

Improved is DummyStream check.

pull/206/head
Simon Eisenmann 10 years ago
parent
commit
ced1e76c34
  1. 2
      static/js/mediastream/dummystream.js

2
static/js/mediastream/dummystream.js

@ -34,7 +34,7 @@ define([], function() {
return !stream || stream.stop !== DummyStream.prototype.stop; return !stream || stream.stop !== DummyStream.prototype.stop;
}; };
DummyStream.is = function(stream) { DummyStream.is = function(stream) {
return !this.not(stream); return stream && stream.stop === DummyStream.prototype.stop;
}; };
return DummyStream; return DummyStream;

Loading…
Cancel
Save