mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
grunt jshint 설정 변경
This commit is contained in:
parent
46863a8a47
commit
080bbcb0f7
5 changed files with 17 additions and 16 deletions
15
Gruntfile.js
15
Gruntfile.js
|
|
@ -160,11 +160,6 @@ module.exports = function(grunt) {
|
|||
files: [
|
||||
'Gruntfile.js',
|
||||
'common/js/*.js',
|
||||
'!common/js/html5.js',
|
||||
'!common/js/jquery.js',
|
||||
'!common/js/x.js',
|
||||
'!common/js/xe.js',
|
||||
'!common/js/modernizr.js',
|
||||
'modules/admin/tpl/js/*.js',
|
||||
'modules/board/tpl/js/*.js',
|
||||
'modules/editor/tpl/js/*.js',
|
||||
|
|
@ -175,9 +170,15 @@ module.exports = function(grunt) {
|
|||
ignores : [
|
||||
'**/jquery*.js',
|
||||
'**/swfupload.js',
|
||||
'**/*.min.js',
|
||||
'**/**.min.js',
|
||||
'**/*-packed.js',
|
||||
'**/*.compressed.js'
|
||||
'**/*.compressed.js',
|
||||
'**/jquery-*.js',
|
||||
'**/jquery.*.js',
|
||||
'common/js/html5.js',
|
||||
'common/js/x.js',
|
||||
'common/js/xe.js',
|
||||
'common/js/modernizr.js',
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
(function($){
|
||||
"use strict";
|
||||
var App = window.xe.getApp('xeEditorApp')[0];
|
||||
var CK = window.CKEDITOR;
|
||||
|
||||
|
|
|
|||
|
|
@ -797,6 +797,7 @@ jQuery(function($){
|
|||
});
|
||||
|
||||
if(typeof console == 'undefined'){
|
||||
/* jshint -W020 */
|
||||
console={log:function(){}};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
<script>
|
||||
(function($){
|
||||
"use strict";
|
||||
var editor_primary_key_name = '{$editor_primary_key_name}';
|
||||
var editor_content_key_name = '{$editor_content_key_name}';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +1,20 @@
|
|||
(function($){
|
||||
var xeEditorApp = xe.createApp('xeEditorApp', {
|
||||
init : function() {
|
||||
console.log('INIT @ xeEditorApp')
|
||||
"use strict";
|
||||
var XeEditorApp = xe.createApp('xeEditorApp', {
|
||||
init : function() {
|
||||
},
|
||||
API_ONREADY : function() {
|
||||
console.log('ONREADY @ xeEditorApp');
|
||||
},
|
||||
getContent : function(seq) {
|
||||
this.cast('GET_CONTENT');
|
||||
},
|
||||
API_EDITOR_CREATED : function(){
|
||||
console.log('APP @ API_EDITOR_CREATED');
|
||||
},
|
||||
});
|
||||
|
||||
// Shortcut function in jQuery
|
||||
$.fn.xeEditorApp = function(opts) {
|
||||
var u = new xeEditorApp(this.eq(0), opts);
|
||||
var u = new XeEditorApp(this.eq(0), opts);
|
||||
if(u) xe.registerApp(u);
|
||||
|
||||
return u;
|
||||
|
|
@ -24,12 +22,11 @@
|
|||
|
||||
// Shortcut function in XE
|
||||
window.xe.createXeEditor = function() {
|
||||
var u = new xeEditorApp();
|
||||
// if(u) xe.registerApp(u);
|
||||
var u = new XeEditorApp();
|
||||
|
||||
return u;
|
||||
};
|
||||
var u = new xeEditorApp();
|
||||
var u = new XeEditorApp();
|
||||
xe.registerApp(u);
|
||||
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue