Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #32046 from bentian/bug-1208359
Browse files Browse the repository at this point in the history
Bug 1208359 - [cleanup] Remove trailing spaces and correct typos in transfer_manager.js, r=gasolin
  • Loading branch information
gasolin committed Sep 25, 2015
2 parents 5a0a1bb + e451543 commit 6bc5dee
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/bluetooth/js/modules/transfer_manager.js
Expand Up @@ -117,7 +117,7 @@ define(function(require) {
} else if (reason === 'cancelled') {
this._activity.postError(reason);
}

this._activity = null;
},

Expand Down Expand Up @@ -230,7 +230,7 @@ define(function(require) {
event.detail.address);
var targetDeviceAddress = event.detail.address;
var blobs = this._activity.source.data.blobs;

// Produce sending files schedule.
// Then, post message to system app for sending files in queue.
var schedule = this._produceSendingFilesSchedule(blobs.length);
Expand All @@ -239,11 +239,11 @@ define(function(require) {
// Send each file via Bluetooth sendFile API
return Promise.all(blobs.map((blob, index) => {
/**
* Checking blob.name is because the sendFile() API needs a "file" o
* bject. And it is needing a filaname before send it.
* If there is no filename in the blob, Bluetooth API will give a
* Check blob.name because sendFile() API needs a "file"
* object and a filaname before sending it.
* If there is no filename in the blob, Bluetooth API will give a
* default name "Unknown.jpeg".
* So Bluetooth app have to find out the name via device stroage.
* So Bluetooth app has to find out the name via device storage.
*/
if (blob.name) {
// The blob has name, send the blob directly.
Expand Down Expand Up @@ -303,7 +303,7 @@ define(function(require) {
*/
_produceSendingFilesSchedule:
function bttm__produceSendingFilesSchedule(numberOfTasks) {
// Construct a object to contain info of sending files schedule.
// Construct a object to contain info of sending files schedule.
// And the info will be posted message to system app.
// The result of send files will be displayed on notification.
var sendingFilesSchedule = {
Expand Down

0 comments on commit 6bc5dee

Please sign in to comment.