This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Queue = function() { | |
// copy this to self | |
var self = this; | |
//initiating an empty queue | |
self.queue = []; | |
//initiating an empty object for to keep the last json data fetched by ajax | |
self.lastData = null; | |
// this methods add a function to the queue | |
self.next = function(func) { |
NewerOlder