MessageBox show() logs a warning if no cls is provided
REQUIRED INFORMATION
Ext version tested:Description:- MessageBox.show() makes a call to addCls() whether or not cfg.cls is defined
- addCls() logs a warning if the cls provided is undefined
Test Case:
Code:
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="resources/css/ext-all.css" />
<script type="text/javascript" src="ext-all-dev.js"></script>
</head>
<body>
<script type="text/javascript">
Ext.onReady(function () {
Ext.Logger.warn = function(){
console.warn(arguments);
console.trace();
};
Ext.Msg.show({
title: 'My Message',
msg: 'Message Body',
buttons: Ext.Msg.OK
});
});
</script>
</body>
</html>