Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

127
Vistas
removeEventListener for an API doesnt work (Shapediver)

I use shapediver API for an web page... (http://app.shapediver.com/api)

in API its is writen for adding "addEventListener(type, callback)" and; for removeing , it is writen; removeEventListener(token)

and for token :

id --> of the message token, the same id is used for all messages belonging to the same process

serial --> number of the message token,> increases for every message belonging to the same process

payload -->> which optionally may be passed to asynchronous functions, e.g. a token used to identify progress or status messages of asynchronous processes

I couldnt removeEventListener of API.. add event listener starts but doesnt stop here is what I tried:

api.scene.addEventListener(api.scene.EVENTTYPE.SUBSCENE_PUBLISHED, myFunctionpicbir);

function myFunctionpicbir() {
  alert("1")
  setTimeout(function() {
    html2canvas($('#sdv-container-sky')[0], {
      x: 500,
      y: 0,
      height: 600,
      width: 900
    }).then(function(canvas) {
      document.getElementById('kumas_cizim').appendChild(canvas);
      api.scene.removeEventListener(api.scene.EVENTTYPE.SUBSCENE_PUBLISHED, myFunctionpicbir);
      myFunctiona();
    }, 1500);
  })
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda