Skip to content

Commit 413eb5e

Browse files
author
dimaspirit
committed
cleanup
1 parent 6143ea8 commit 413eb5e

File tree

5 files changed

+6
-49
lines changed

5 files changed

+6
-49
lines changed

gulpfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gulp.task('build', function () {
2424
};
2525

2626
return browserify('./src/qbMain.js', browserifyOpts)
27-
// .transform(babelify, { presets: ['es2015'] })
27+
// .transform(babelify, { presets: ['es2015'] }) // We are added babel, but doesn't use it now
2828
.bundle()
2929
.on('error', function(error) {
3030
notify('Failed when create a bundle <%= error.message %>')
@@ -33,7 +33,8 @@ gulp.task('build', function () {
3333
.pipe(source('quickblox.js'))
3434
.pipe(buffer())
3535
.pipe(uglify()).on('error', function(error){
36-
console.log('Uglify Error <%= error.message %>');
36+
notify('Uglify Error <%= error.message %>');
37+
this.emit('end');
3738
})
3839
.pipe(rename('quickblox.min.js'))
3940
.pipe(notify('Build task is finished.'))

samples/chat/js/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function retrieveChatMessages(dialog, beforeDateSent){
146146
function clickSendMessage() {
147147
var currentText = $('#message_text').val().trim();
148148

149-
if (currentText.length === 0){
149+
if (!currentText.length){
150150
return;
151151
}
152152

samples/node_js/app.log

Lines changed: 0 additions & 43 deletions
This file was deleted.

samples/webrtc/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@
554554
if (!connection || connectionsCount !== 1){
555555
return false;
556556
}
557-
console.info('HERE');
557+
558558
recorder = new QB.Recorder(connection.stream, recorderOpts);
559559
recorder.start();
560560
} else {

src/modules/qbContent.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ ContentProxy.prototype = {
149149
data: params.data
150150
};
151151

152-
this.service.ajax(uploadParams, function(err,xmlDoc) {
153-
console.info('Upload', uploadParams);
152+
this.service.ajax(uploadParams, function(err, xmlDoc) {
154153
if (err) {
155154
callback (err, null);
156155
} else {

0 commit comments

Comments
 (0)