Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!