1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

remove console logs

This commit is contained in:
ido 2015-01-05 10:07:27 +02:00
parent 8ec25ad8cd
commit d44559a5e8
4 changed files with 5 additions and 5 deletions

View File

@ -121,7 +121,7 @@ module.exports = function (grunt) {
grunt.registerTask('build', ['rt', 'browserify:pg']); grunt.registerTask('build', ['rt', 'browserify:pg']);
grunt.registerTask('home', ['rt', 'browserify:home']); grunt.registerTask('home', ['rt', 'browserify:home']);
grunt.registerTask('pgall', ['rt', 'browserify', 'uglify']); grunt.registerTask('pgall', ['rt', 'browserify', 'uglify', 'requirejs']);
grunt.registerTask('all', ['default', 'test']); grunt.registerTask('all', ['default', 'test']);
}; };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -98,7 +98,7 @@ define(['react', 'jquery', 'lodash', './playground-fiddle.rt', './playground.rt'
validHTML: true, validHTML: true,
validProps: true, validProps: true,
setTimeout: function() { setTimeout: function() {
console.log('setTimeout'); //console.log('setTimeout');
clearTimeout(this.timeoutID); clearTimeout(this.timeoutID);
this.timeoutID = setTimeout.apply(null, arguments); this.timeoutID = setTimeout.apply(null, arguments);
}, },
@ -156,7 +156,7 @@ define(['react', 'jquery', 'lodash', './playground-fiddle.rt', './playground.rt'
this.sampleRender = generateRenderFunc(this.sampleFunc); this.sampleRender = generateRenderFunc(this.sampleFunc);
try { try {
this.validProps = true; this.validProps = true;
console.log(state.templateProps); //console.log(state.templateProps);
/*eslint no-eval:0*/ /*eslint no-eval:0*/
this.sample = eval('(function () {' + this.templateSource + '\n' + state.templateProps + '\n return React.createElement(' + state.name + ');})()'); this.sample = eval('(function () {' + this.templateSource + '\n' + state.templateProps + '\n return React.createElement(' + state.name + ');})()');
clearMessage(this.refs.editorCode); clearMessage(this.refs.editorCode);