Revision: 3191
http://vexi.svn.sourceforge.net/vexi/?rev=3191&view=rev
Author: mkpg2
Date: 2008-11-10 15:08:11 +0000 (Mon, 10 Nov 2008)
Log Message:
-----------
Warn, don't throw exception if holder already has contents.
Modified Paths:
--------------
trunk/widgets/org.vexi.pageflow/.vexipath
trunk/widgets/org.vexi.pageflow/src/vexi/pageflow/holder.t
trunk/widgets/org.vexi.pageflow/src/vexi/pageflow/pageflow.t
Modified: trunk/widgets/org.vexi.pageflow/.vexipath
===================================================================
--- trunk/widgets/org.vexi.pageflow/.vexipath 2008-11-10 14:17:32 UTC (rev
3190)
+++ trunk/widgets/org.vexi.pageflow/.vexipath 2008-11-10 15:08:11 UTC (rev
3191)
@@ -4,6 +4,7 @@
"F/org.vexi.pageflow/src_vunit"
],
"projects" : [
- "P/org.vexi.widgets"
+ "P/org.vexi.widgets",
+ "P/org.vexi.vunit"
]
}
\ No newline at end of file
Modified: trunk/widgets/org.vexi.pageflow/src/vexi/pageflow/holder.t
===================================================================
--- trunk/widgets/org.vexi.pageflow/src/vexi/pageflow/holder.t 2008-11-10
14:17:32 UTC (rev 3190)
+++ trunk/widgets/org.vexi.pageflow/src/vexi/pageflow/holder.t 2008-11-10
15:08:11 UTC (rev 3191)
@@ -12,12 +12,12 @@
var locked = null;
thisbox.lock = function(locker) {
- if (locked and locked!=locker) throw "already locked by someone
else";
+ if (locked and locked!=locker) vexi.log.warn("already locked by
someone else");
locked = locker;
};
thisbox.unlock = function(unlocker) {
- if (locked and locked!=unlocker) throw "not locked by unlocker";
+ if (locked and locked!=unlocker) vexi.log.warn("not locked by
unlocker");
locked = null;
};
@@ -30,7 +30,7 @@
// Position in children
thisbox.Children ++= function(c) {
if (c) {
- if (locked) throw "trying to change child, whilst holder
locked";
+ if (locked) vexi.log.warn("trying to change child, whilst
holder locked");
// FEATURE - children at higher indexes as a holder queue?
if (trapname!=0) throw "added child to non-0 location of
holder";
while (numchildren) thisbox[0] = null;
Modified: trunk/widgets/org.vexi.pageflow/src/vexi/pageflow/pageflow.t
===================================================================
--- trunk/widgets/org.vexi.pageflow/src/vexi/pageflow/pageflow.t
2008-11-10 14:17:32 UTC (rev 3190)
+++ trunk/widgets/org.vexi.pageflow/src/vexi/pageflow/pageflow.t
2008-11-10 15:08:11 UTC (rev 3191)
@@ -53,7 +53,7 @@
thisbox.state = states[startstate];
};
- // DEPRECATED
+ // DEPRECATED/WARNING - only intended to be used with tests
thisbox.startAndWait = function() {
start();
syncFlag = true;
@@ -81,7 +81,7 @@
else state = states[next];
}else{
// the start event
- assert(name=="start");
+ assert(name=="start" || name=="exit");
}
cascade = e;
vexi.thread = function() {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn