File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -148,16 +148,15 @@ DocumentFrame.prototype.filterFrame = function(loadRenderer){
148
148
this . applyRules ( false , false , myfilt ) ;
149
149
}
150
150
151
- DocumentFrame . prototype . setErrors = function ( errors ) {
152
- this . clearErrors ( )
153
- let frameconf = TerminusClient . View . document ( )
151
+ DocumentFrame . prototype . setErrors = function ( errors , frameconf ) {
152
+ this . clearErrors ( frameconf )
154
153
for ( var i = 0 ; i < errors . length ; i ++ ) {
155
154
addRuleForVio ( frameconf , errors [ i ] )
156
155
}
157
156
this . applyRules ( false , frameconf ) ;
158
157
}
159
158
160
- DocumentFrame . prototype . clearErrors = function ( ) {
159
+ DocumentFrame . prototype . clearErrors = function ( frameconf ) {
161
160
frameconf . all ( ) . errors ( false )
162
161
this . applyRules ( false , frameconf )
163
162
}
@@ -168,7 +167,7 @@ function addRuleForVio(docview, error){
168
167
let val = ( error [ 'api:value' ] ? error [ 'api:value' ] [ "@value" ] : false )
169
168
let type = ( error [ 'api:type' ] ? error [ 'api:type' ] [ "@value" ] : false )
170
169
if ( type && val ) { //api:BadCast
171
- frameconf . data ( ) . value ( val ) . range ( type ) . errors ( [ error ] )
170
+ docview . data ( ) . value ( val ) . range ( type ) . errors ( [ error ] )
172
171
}
173
172
}
174
173
You can’t perform that action at this time.
0 commit comments