@@ -20,15 +20,15 @@ <h1>Raw test of jamrules</h1>
2020
2121
2222 //initialisation of jamrules and its configurator
23- var rulesEngineBlack1 = new jamrules ( $ ( '#filterbox' ) , { debug :true , LogLevel :3 , name :"rulesEngineBlack1" } ) ;
24- var rulesEngineBlack2 = new jamrules ( $ ( '#filterbox' ) , { name :"rulesEngineBlack2" } ) ;
25- var rulesEngineBlack3 = new jamrules ( $ ( '#filterbox' ) , { name :"rulesEngineBlack3" } ) ;
26- var rulesEngineBlack4 = new jamrules ( $ ( '#filterbox' ) , { name :"rulesEngineBlack4" } ) ;
27- var rulesEngineWhite1 = new jamrules ( $ ( '#filterbox' ) , { name :"rulesEngineWhite1" } ) ;
28- var rulesEngineWhite2 = new jamrules ( $ ( '#filterbox' ) , { name :"rulesEngineWhite2" } ) ;
29- var rulesEngineWhite3 = new jamrules ( $ ( '#filterbox' ) , { name :"rulesEngineWhite3" } ) ;
30- var rulesEngineWhite4 = new jamrules ( $ ( '#filterbox' ) , { name :"rulesEngineWhite4" } ) ;
31- var rulesEngineWin = new jamrules ( $ ( '#filterbox' ) , { debug :false , LogLevel :3 , name :"rulesEngineWin" } ) ;
23+ var rulesEngineBlack1 = jamrules . build ( $ ( '#filterbox' ) , { debug :true , LogLevel :3 , name :"rulesEngineBlack1" } ) ;
24+ var rulesEngineBlack2 = jamrules . build ( $ ( '#filterbox' ) , { name :"rulesEngineBlack2" } ) ;
25+ var rulesEngineBlack3 = jamrules . build ( $ ( '#filterbox' ) , { name :"rulesEngineBlack3" } ) ;
26+ var rulesEngineBlack4 = jamrules . build ( $ ( '#filterbox' ) , { name :"rulesEngineBlack4" } ) ;
27+ var rulesEngineWhite1 = jamrules . build ( $ ( '#filterbox' ) , { name :"rulesEngineWhite1" } ) ;
28+ var rulesEngineWhite2 = jamrules . build ( $ ( '#filterbox' ) , { name :"rulesEngineWhite2" } ) ;
29+ var rulesEngineWhite3 = jamrules . build ( $ ( '#filterbox' ) , { name :"rulesEngineWhite3" } ) ;
30+ var rulesEngineWhite4 = jamrules . build ( $ ( '#filterbox' ) , { name :"rulesEngineWhite4" } ) ;
31+ var rulesEngineWin = jamrules . build ( $ ( '#filterbox' ) , { debug :false , LogLevel :3 , name :"rulesEngineWin" } ) ;
3232
3333 var nbFoundDotColor = 0 ;
3434
@@ -111,7 +111,7 @@ <h1>Raw test of jamrules</h1>
111111 case 'rulesEngineWhite4' :
112112 this . nbWhiteDotFound ++ ;
113113 $ ( "#msg" ) . append ( "<p>matched</p>" ) ;
114- $ . each ( aEngineRule . ruleEngine . opts . reason , function ( index , value ) {
114+ $ . each ( aEngineRule . myRulesEngine . opts . reason , function ( index , value ) {
115115 if ( value . indexOf ( "DefaultState" ) == - 1 )
116116 $ ( "#msg" ) . append ( "Match reason: State " + index + " --> " + value ) ;
117117 } ) ;
@@ -122,7 +122,7 @@ <h1>Raw test of jamrules</h1>
122122 case 'rulesEngineBlack4' :
123123 this . nbBlackDotFound ++ ;
124124 $ ( "#msg" ) . append ( "<p>matched</p>" ) ;
125- $ . each ( aEngineRule . ruleEngine . opts . reason , function ( index , value ) {
125+ $ . each ( aEngineRule . myRulesEngine . opts . reason , function ( index , value ) {
126126 if ( value . indexOf ( "DefaultState" ) == - 1 )
127127 $ ( "#msg" ) . append ( "Match reason: State " + index + " --> " + value ) ;
128128 } ) ;
@@ -141,7 +141,7 @@ <h1>Raw test of jamrules</h1>
141141 break ;
142142 default :
143143 $ ( "#msg" ) . append ( "<p>not matched</p>" ) ;
144- $ . each ( aEngineRule . ruleEngine . opts . reason , function ( index , value ) {
144+ $ . each ( aEngineRule . myRulesEngine . opts . reason , function ( index , value ) {
145145 if ( value . indexOf ( "DefaultState" ) == - 1 )
146146 $ ( "#msg" ) . append ( "Don't Match reason: State " + index + " --> " + value ) ;
147147 } ) ;
0 commit comments