|
|
@ -8,6 +8,7 @@ define([
|
|
|
|
'/common/common-util.js',
|
|
|
|
'/common/common-util.js',
|
|
|
|
'/common/common-hash.js',
|
|
|
|
'/common/common-hash.js',
|
|
|
|
'/common/modes.js',
|
|
|
|
'/common/modes.js',
|
|
|
|
|
|
|
|
'/common/visible.js',
|
|
|
|
'/customize/messages.js',
|
|
|
|
'/customize/messages.js',
|
|
|
|
'cm/lib/codemirror',
|
|
|
|
'cm/lib/codemirror',
|
|
|
|
|
|
|
|
|
|
|
@ -49,6 +50,7 @@ define([
|
|
|
|
Util,
|
|
|
|
Util,
|
|
|
|
Hash,
|
|
|
|
Hash,
|
|
|
|
Modes,
|
|
|
|
Modes,
|
|
|
|
|
|
|
|
Visible,
|
|
|
|
Messages,
|
|
|
|
Messages,
|
|
|
|
CMeditor)
|
|
|
|
CMeditor)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -222,6 +224,12 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible.onChange(function (visible) {
|
|
|
|
|
|
|
|
if (visible) {
|
|
|
|
|
|
|
|
drawPreview();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
forceDraw: forceDrawPreview,
|
|
|
|
forceDraw: forceDrawPreview,
|
|
|
|
draw: drawPreview,
|
|
|
|
draw: drawPreview,
|
|
|
|