You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

quick_tiling_fix.js 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. window.qt = {
  2. cnt:0,
  3. mx:20,
  4. stop:0,
  5. }
  6. function onAll_run(a,b,c){
  7. clog("onAll_run",qt.cnt,a,b,c)
  8. // clog("onAll",arguments)
  9. qt.cnt += 1
  10. if (qt.cnt > qt.mx || qt.stop){
  11. clog("stopping",qt.cnt > qt.mx || qt.stop,{cnt:qt.cnt , mx:qt.mx , stop:qt.stop})
  12. return false
  13. }
  14. return true
  15. }
  16. function onAll(a,b,c){
  17. clog("onAll_xyz",qt.cnt,a,b,c)
  18. // clog("onAll",arguments)
  19. qt.cnt += 1
  20. if (qt.cnt > qt.mx || qt.stop){
  21. clog("stopping",qt.cnt > qt.mx || qt.stop,{cnt:qt.cnt , mx:qt.mx , stop:qt.stop})
  22. return false
  23. }
  24. return true
  25. }
  26. function onAll_isMatch(a,b,c){
  27. clog("onAll_isMatch",qt.cnt,a,b,c)
  28. // clog("onAll",arguments)
  29. qt.cnt += 1
  30. if (qt.cnt > qt.mx || qt.stop){
  31. clog("stopping",qt.cnt > qt.mx || qt.stop,{cnt:qt.cnt , mx:qt.mx , stop:qt.stop})
  32. return false
  33. }
  34. clog("ISMATCH RET")
  35. return true
  36. }
  37. var jhndlr_opt_null = {
  38. from: undefined,
  39. handler: onAll,
  40. run: onAll_run,
  41. id: null,
  42. name: null,
  43. // "http://jitsi.org/jitmeet"
  44. ns: null,
  45. options: {matchBareFromJid: false, ignoreNamespaceFragment: false},
  46. type: null,
  47. user: true,
  48. isMatch:onAll_isMatch,
  49. // cstr:"test"
  50. };
  51. hprx = {
  52. get:function(obj, prop,receiver){
  53. clog("HPRX",obj, prop,receiver)
  54. return Reflect.get(...arguments)
  55. },
  56. }
  57. // APP.connection.xmpp.connection._stropheConn.handlers
  58. // APP.connection.xmpp.connection._stropheConn.addHandlers.push(jhndlr_opt_null)
  59. // APP.connection.xmpp.connection._stropheConn.addHandlers.push(new Proxy(jhndlr_opt_null,hprx))
  60. // APP.connection.xmpp.connection._stropheConn.handlers.push(jhndlr_opt_null)
  61. // APP.conference._room.room.addEventListener(jhndlr_opt_null)
  62. // addListener
  63. // APP.store.subscribe(onAll)
  64. // APP.conference._room.room.connection
  65. // APP.conference._room.room.connection.addEventListener("CLIENT_RESIZED",onAll)
  66. // APP.conference._room.room.connection.addEventListener("USER_JOINED",onAll)