Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript listen array change

function processQ() {
   // ... this will be called on each .push
}

var myEventsQ = [];
myEventsQ.push = function() { Array.prototype.push.apply(this, arguments);  processQ();};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #listen #array #change
ADD COMMENT
Topic
Name
3+3 =