diff --git a/RunJS/webapp/js/base1.js b/RunJS/webapp/js/base1.js
index 15ac721c98048fd9336d440b85eb2d35fc4dcb07..7c9151d4c3014cbb1a943ef1ca60f16874bd362e 100644
--- a/RunJS/webapp/js/base1.js
+++ b/RunJS/webapp/js/base1.js
@@ -76,8 +76,10 @@ var RunJS = function(opt) {
html = body[0];
temp = body.length == 2 && body[1] ? body[1] : "";
}
- return html + ""
- + "" + temp;
+ return html
+ + ""
+ + ""
+ + temp;
}
var resizeEditor = function() {
@@ -1428,7 +1430,7 @@ var Controls = function(opt) {
var hide = right.find("ul");
hide.removeClass("setting_on").addClass("setting_off");
show.removeClass("setting_off").addClass("setting_on");
- });
+ });
},
setTheme : function(theme) {
if (User.login) {
@@ -2645,7 +2647,7 @@ var Controls = function(opt) {
/*
* //select显示 $(".select").find(".title").click(function() { var cur_ul =
* $(this).parent().find("ul").toggle(); })
- *
+ *
* $(".toolItem li").click(function() { $(this).parent().hide(); });
*/
diff --git a/RunJS/webapp/js/editor.js b/RunJS/webapp/js/editor.js
index 4132811cd5c693a344589fbe838412dd46ad1441..73f423037fb6dfcb84095c5a7caa2c1d14e513f8 100644
--- a/RunJS/webapp/js/editor.js
+++ b/RunJS/webapp/js/editor.js
@@ -1,6 +1,6 @@
/**
* 按视图划分,Editor负责编辑器视图的显示及操作
- *
+ *
* @class Editor
*/
Editor = (function() {
@@ -11,7 +11,7 @@ Editor = (function() {
/**
* 默认配置参数
- *
+ *
* @attribute defaultParams
* @private
*/
@@ -26,7 +26,7 @@ Editor = (function() {
/**
* 事件绑定规则定义,详情见 {{#crossLink "Utils"}}{{/crossLink}} 类中的 {{#crossLink
* "Utils/binder"}}{{/crossLink}} 方法
- *
+ *
* @property Events
* @type {JSON}
*/
@@ -37,7 +37,7 @@ Editor = (function() {
/**
* 显示视图右上角快速工具条
- *
+ *
* @method show_quick_tools
*/
PT.show_quick_tools = function() {
@@ -46,7 +46,7 @@ Editor = (function() {
/**
* 隐藏视图右上角快速工具条
- *
+ *
* @method hide_quick_tools
*/
PT.hide_quick_tools = function() {
@@ -68,7 +68,7 @@ Editor = (function() {
/**
* 编辑器视图初始化
- *
+ *
* @method initView
* @param {String}
* ident 代码唯一标识
@@ -94,7 +94,7 @@ Editor = (function() {
/**
* 选择JS编辑类型:JavaScript或CoffeeScript
- *
+ *
* @method chooseJsType
*/
PT.chooseJsType = function() {
@@ -123,7 +123,7 @@ Editor = (function() {
/**
* 选择CSS编辑类型:CSS 或 LESS
- *
+ *
* @method chooseCssType
*/
PT.chooseCssType = function() {
@@ -152,7 +152,7 @@ Editor = (function() {
/**
* 获取当前代码的MD5值
- *
+ *
* @method codeMD5
*/
PT.codeMD5 = function() {
@@ -160,7 +160,7 @@ Editor = (function() {
}
/**
* 给三个视图异步加载代码
- *
+ *
* @method loadTemplate
* @param {String}
* ident 代码唯一标识,ident为空则加载默认模版代码,ident不为空则尝试加载用户的对应代码
@@ -184,7 +184,7 @@ Editor = (function() {
/**
* 加载插件模版代码
- *
+ *
* @method loadPlugin
* @param {String}
* ident 代码唯一标识
@@ -206,7 +206,7 @@ Editor = (function() {
/**
* 加载插件模版代码
- *
+ *
* @method loadPluginTpl
* @param {String}
* ident 代码唯一标识
@@ -222,7 +222,7 @@ Editor = (function() {
/**
* 检查并设置编辑器编辑状态
- *
+ *
* @method setEditedStatus
*/
PT.setEditedStatus = function() {
@@ -249,7 +249,7 @@ Editor = (function() {
/**
* 移除编辑状态
- *
+ *
* @method removeEditedStatus
*/
PT.removeEditedStatus = function() {
@@ -260,7 +260,7 @@ Editor = (function() {
/**
* 以同步方式加载模版代码
- *
+ *
* @method getRemoteCode
* @param {String}
* ident 代码唯一标识
@@ -274,7 +274,7 @@ Editor = (function() {
/**
* 从远程加载代码片段,如果ident为空,则加载模版代码片段
- *
+ *
* @method loadTplSnippet
* @param {String}
* ident 代码唯一标识
@@ -316,7 +316,7 @@ Editor = (function() {
/**
* 获取当前编辑器内textarea代码
- *
+ *
* @method getCodeOfView
* @param {Object}
* view 视图选择器
@@ -331,7 +331,7 @@ Editor = (function() {
/**
* 初始化CodeMirror
- *
+ *
* @method initCodeMirror
* @param {Object}
* view 视图选择器
@@ -440,7 +440,7 @@ Editor = (function() {
/**
* 获取CodeMirro编辑器代码
- *
+ *
* @method getEditorCode
* @param {String}
* type 编辑器类型 'html'|'css'|'js'
@@ -464,7 +464,7 @@ Editor = (function() {
/**
* 获取HTML+JS+CSS组合过后的最终页面代码,用于在预览视图中实时显示
- *
+ *
* @method getCombinedHtml
*/
PT.getCombinedHtml = function() {
@@ -496,12 +496,12 @@ Editor = (function() {
} catch (e) {
return buildString(html, "", temp);
}
- return buildString(html, "", "", temp);
+ return buildString(html, "", "", temp);
}
/**
* 更新视图的定时器实例,用来实现延时更新
- *
+ *
* @attribute update_delay
* @private
*/
@@ -509,7 +509,7 @@ Editor = (function() {
/**
* 更新预览视图的内容
- *
+ *
* @method updatePreview
* @param {String}
* chtml 组合过后的HTML+CSS+JS代码
@@ -544,7 +544,7 @@ Editor = (function() {
/**
* 获取默认代码
- *
+ *
* @method getDefaultEditorValue
* @param {String}
* type 代码类型 'html'|'css'|'js'
@@ -555,7 +555,7 @@ Editor = (function() {
/**
* 根据全局变量 Setting 中的theme属性设置主题,当前只是 default 和 night两种主题
- *
+ *
* @method setTheme
*/
PT.setTheme = function() {
@@ -572,7 +572,7 @@ Editor = (function() {
/**
* 设置CodeMirror字体,根据全局变量 Setting 中的fontfamily和fontsize属性设置字体
- *
+ *
* @method setCMFont
*/
PT.setCMFont = function() {
@@ -604,7 +604,7 @@ Editor = (function() {
/**
* 刷新编辑器,当编辑器外观或大小被改变时调用
- *
+ *
* @method refreshEditors
*/
PT.refreshEditors = function() {