Skip to content

Commit

Permalink
fix bug assertProperty failed at if (opts.preMatchProcess) it is null…
Browse files Browse the repository at this point in the history
… in this case
  • Loading branch information
mariangemarcano committed Oct 15, 2010
1 parent ededcd2 commit 031c827
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/org/flex_pilot/FPAssert.as
Expand Up @@ -235,6 +235,10 @@ package org.flex_pilot {
}
}
}
// Do any preprocessing of the value to check
if (opts.preMatchProcess) {
attrVal = opts.preMatchProcess(attrVal);
}
}
// Attr name is passed as part of the validator using
// the pipe syntax:
Expand Down Expand Up @@ -271,11 +275,6 @@ package org.flex_pilot {
}
}

// Do any preprocessing of the value to check
if (opts.preMatchProcess) {
attrVal = opts.preMatchProcess(attrVal);
}

// Check for a match
var ret:Boolean = false;
var errMsg:String;
Expand Down

0 comments on commit 031c827

Please sign in to comment.