Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. "use strict";
  2.  
  3. var AudioNode$connect = AudioNode.prototype.connect;
  4. var AudioNode$disconnect = AudioNode.prototype.disconnect;
  5.  
  6. AudioNode.prototype.connect = connect;
  7. AudioNode.prototype.disconnect = disconnect;
  8.  
  9. function connect(destination) {
  10. var args = [].slice.call(arguments, 1);
  11.  
  12. if (typeof destination.__connectFrom === "function") {
  13. destination.__connectFrom.apply(destination, [ this ].concat(args));
  14. } else {
  15. AudioNode$connect.apply(this, [ destination ].concat(args));
  16. }
  17. };
  18.  
  19. function disconnect() {
  20. var args = [].slice.call(arguments);
  21.  
  22. if (args.length && typeof args[0].__disconnectFrom === "function") {
  23. destination.__disconnectFrom.apply(destination, [ this ].concat(args.slice(1)));
  24. } else {
  25. AudioNode$disconnect.apply(this, args);
  26. }
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement