Author: knopp
Date: Mon Aug 18 17:24:57 2008
New Revision: 686906
URL: http://svn.apache.org/viewvc?rev=686906&view=rev
Log:
just some crazy stuff
Modified:
wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax-ng.js
Modified:
wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax-ng.js
URL:
http://svn.apache.org/viewvc/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax-ng.js?rev=686906&r1=686905&r2=686906&view=diff
==============================================================================
---
wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax-ng.js
(original)
+++
wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax-ng.js
Mon Aug 18 17:24:57 2008
@@ -620,6 +620,7 @@
execute: function(next)
{
console.info("Hello!");
+ next();
}
};
@@ -633,6 +634,8 @@
{
addInternal: function(item)
{
+ var execute = this.queue.length == 0;
+
var a = item.attributes;
if (a.removePrevious)
{
@@ -647,7 +650,7 @@
}
this.queue.push(item);
- if (this.currentItem == null)
+ if (execute)
{
this.next();
}
@@ -778,7 +781,7 @@
var i = 0;
- var pre = function(item) { console.info("X", item); if (i++ % 2 == 0)
return false; else return true;};
+ var pre = function(item) { console.info("X", item); return true; };
var x = new RequestQueueItem({b:4,c:"cpn1234", pr:pre});
var y = new RequestQueue();
y.add(x);