<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -99,7 +99,7 @@ State.behavior = Behavior.create({
     },
 
     changeState: function(newStateName, event) {
-        if (typeof(this.definition[this.state]) == 'undefined') throw &quot;UndefinedState&quot;;
+        if (typeof(this.definition[newStateName]) == 'undefined') throw &quot;UndefinedState&quot;;
         this.unbindStateEvents();
         this.handleEvent('exit', event);
         this.state = newStateName;</diff>
      <filename>lowpro/state/state.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>03fb97141f3150e4174436ca3630795176fc6e0c</id>
    </parent>
  </parents>
  <author>
    <name>phillc</name>
    <email>pccampbell@patrickdavis.com</email>
  </author>
  <url>http://github.com/jim/gizmos/commit/075044fbbaaec5a9ef1112a68c3196abc83a8670</url>
  <id>075044fbbaaec5a9ef1112a68c3196abc83a8670</id>
  <committed-date>2009-10-05T10:04:08-07:00</committed-date>
  <authored-date>2009-09-29T12:40:01-07:00</authored-date>
  <message>Was previously checking if previous state existed. Changed to check if the future state exists, and throws the error</message>
  <tree>1086cf765e0b8e7b061b2dce53d4221dc1b658f5</tree>
  <committer>
    <name>Jim Benton</name>
    <email>jim@autonomousmachine.com</email>
  </committer>
</commit>
