Skip to content

Commit

Permalink
Merge pull request #1 from petitchevalroux/master
Browse files Browse the repository at this point in the history
Remove console
  • Loading branch information
sguilly authored Mar 20, 2017
2 parents cfa2873 + d9eb2d2 commit 4a27ed0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions dist/LoopbackClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ var LoopbackClient = function () {
}, {
key: 'getToken',
value: function getToken() {
console.log('1=', this.token);

return this.token;
}
Expand All @@ -43,20 +42,16 @@ var LoopbackClient = function () {
var promise = new Promise(function (resolve, reject) {

if (_this.token) {
console.log('token from cache');
resolve(_this.token);
} else {

console.log('create token');

var data = {
email: _this.user,
password: _this.password
};

rest.postJson(_this.baseUrl + '/users/login?include=user', data).on('complete', function (result) {

//console.log('result=',result)
if (result instanceof Error) {
reject(result.message);
} else {
Expand Down
7 changes: 0 additions & 7 deletions dist/LoopbackModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ var LoopbackModel = function () {
value: function post(url, data, query) {
var _this2 = this;

console.log('url', url);

var promise = new Promise(function (resolve, reject) {

var options = {
Expand All @@ -66,7 +64,6 @@ var LoopbackModel = function () {

rest.postJson(url, data, options).on('complete', function (result, response) {

console.log('result=', result);
if (result instanceof Error) {
reject(result.message);
} else {
Expand All @@ -86,8 +83,6 @@ var LoopbackModel = function () {
value: function put(url, data) {
var _this3 = this;

console.log('url', url);

var promise = new Promise(function (resolve, reject) {

rest.putJson(url, data, {
Expand All @@ -112,8 +107,6 @@ var LoopbackModel = function () {
value: function del(url) {
var _this4 = this;

console.log('url', url);

var promise = new Promise(function (resolve, reject) {

rest.del(url, {
Expand Down
4 changes: 0 additions & 4 deletions src/LoopbackClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class LoopbackClient {

getToken()
{
console.log('1=',this.token)

return this.token
}
Expand All @@ -36,12 +35,10 @@ class LoopbackClient {

if(this.token)
{
console.log('token from cache')
resolve(this.token);
}
else {

console.log('create token')

var data = {
email: this.user,
Expand All @@ -52,7 +49,6 @@ class LoopbackClient {

).on('complete', (result) =>{

//console.log('result=',result)
if (result instanceof Error) {
reject(result.message);

Expand Down
4 changes: 0 additions & 4 deletions src/LoopbackModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class LoopbackModel {

post(url, data,query) {

console.log('url', url)

var promise = new Promise( (resolve, reject) => {

Expand All @@ -67,7 +66,6 @@ class LoopbackModel {

).on('complete', function (result,response) {

console.log('result=',result)
if (result instanceof Error) {
reject(result.message);

Expand All @@ -92,7 +90,6 @@ class LoopbackModel {

put(url, data) {

console.log('url', url)

var promise = new Promise( (resolve, reject) => {

Expand Down Expand Up @@ -125,7 +122,6 @@ class LoopbackModel {

del(url) {

console.log('url', url)

var promise = new Promise( (resolve, reject) => {

Expand Down

0 comments on commit 4a27ed0

Please sign in to comment.