Skip to content

Commit

Permalink
Remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedmansour committed Mar 11, 2013
1 parent c1aa75b commit 899a686
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
15 changes: 0 additions & 15 deletions background.html

This file was deleted.

8 changes: 4 additions & 4 deletions jsapi/jsapi_for_google_plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ GooglePlusAPI.prototype.getPages = function(callback) {
this._requestService(function(response) {
var dirtyPages = response[1];
var cleanPages = [];
if (dirtyPages && dirtyPages.length > 0) {
if (dirtyPages && dirtyPages.length) {
dirtyPages.forEach(function(element, i) {
var page = {};
page.url = element[2];
Expand Down Expand Up @@ -1192,7 +1192,7 @@ GooglePlusAPI.prototype.lookupUsers = function(callback, ids) {
// Internal request.
var doRequest = function() {
var usersParam = allParams.slice(indexSliced, indexSliced + MAX_SLICE);
if (usersParam.length == 0) {
if (usersParam.length === 0) {
self._fireCallback(callback, { status: true, data: users });
return;
}
Expand Down Expand Up @@ -1534,7 +1534,7 @@ GooglePlusAPI.prototype.search = function(callback, query, opt_extra) {
});
// Decide whether to do bursts or not.
if (burst &&
(mode === 'rt' || searchResults.length>0)){ // Bursts cannot start if there are initially no results
(mode === 'rt' || searchResults.length)){ // Bursts cannot start if there are initially no results
mode = 'rt';
if (--burst_size > 0) {
setTimeout(function() {
Expand All @@ -1551,7 +1551,7 @@ GooglePlusAPI.prototype.search = function(callback, query, opt_extra) {
self._requestService(function(response) {
var hashTags = [];

if (response[1] && response[1].length > 0) {
if (response[1] && response[1].length) {
response[1].forEach(function(elt) {
hashTags.push(elt[0]);
});
Expand Down

0 comments on commit 899a686

Please sign in to comment.