9 lines
125 B
JavaScript
9 lines
125 B
JavaScript
|
|
||
|
|
||
|
var validate = function( code, check, attributes ) {
|
||
|
if ( !check ) {
|
||
|
throw createError( code, attributes );
|
||
|
}
|
||
|
};
|
||
|
|