diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/collections/Queue.js | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/collections/Queue.js')
-rw-r--r-- | includes/js/dojox/collections/Queue.js | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/includes/js/dojox/collections/Queue.js b/includes/js/dojox/collections/Queue.js deleted file mode 100644 index 5fa4a5d..0000000 --- a/includes/js/dojox/collections/Queue.js +++ /dev/null @@ -1,74 +0,0 @@ -if(!dojo._hasResource["dojox.collections.Queue"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.collections.Queue"] = true; -dojo.provide("dojox.collections.Queue"); -dojo.require("dojox.collections._base"); - -dojox.collections.Queue=function(/* array? */arr){ - // summary - // return an object of type dojox.collections.Queue - var q=[]; - if (arr){ - q=q.concat(arr); - } - this.count=q.length; - this.clear=function(){ - // summary - // clears the internal collection - q=[]; - this.count=q.length; - }; - this.clone=function(){ - // summary - // creates a new Queue based on this one - return new dojox.collections.Queue(q); // dojox.collections.Queue - }; - this.contains=function(/* object */ o){ - // summary - // Check to see if the passed object is an element in this queue - for(var i=0; i<q.length; i++){ - if (q[i]==o){ - return true; // bool - } - } - return false; // bool - }; - this.copyTo=function(/* array */ arr, /* int */ i){ - // summary - // Copy the contents of this queue into the passed array at index i. - arr.splice(i,0,q); - }; - this.dequeue=function(){ - // summary - // shift the first element off the queue and return it - var r=q.shift(); - this.count=q.length; - return r; // object - }; - this.enqueue=function(/* object */ o){ - // summary - // put the passed object at the end of the queue - this.count=q.push(o); - }; - this.forEach=function(/* function */ fn, /* object? */ scope){ - // summary - // functional iterator, following the mozilla spec. - dojo.forEach(q, fn, scope); - }; - this.getIterator=function(){ - // summary - // get an Iterator based on this queue. - return new dojox.collections.Iterator(q); // dojox.collections.Iterator - }; - this.peek=function(){ - // summary - // get the next element in the queue without altering the queue. - return q[0]; - }; - this.toArray=function(){ - // summary - // return an array based on the internal array of the queue. - return [].concat(q); - }; -}; - -} |