Skip to content

Commit

Permalink
Tweak variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Sep 22, 2015
1 parent f572d24 commit 57e67d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions dist/localforage.js
Expand Up @@ -1044,12 +1044,12 @@ return /******/ (function(modules) { // webpackBootstrap

function initDriver(supportedDrivers) {
return function () {
var crntDriverPos = 0;
var currentDriverIndex = 0;

function driverPromiseLoop() {
while (crntDriverPos < supportedDrivers.length) {
var driverName = supportedDrivers[crntDriverPos];
crntDriverPos++;
while (currentDriverIndex < supportedDrivers.length) {
var driverName = supportedDrivers[currentDriverIndex];
currentDriverIndex++;

self._dbInfo = null;
self._ready = null;
Expand Down
8 changes: 4 additions & 4 deletions dist/localforage.nopromises.js
Expand Up @@ -361,12 +361,12 @@ return /******/ (function(modules) { // webpackBootstrap

function initDriver(supportedDrivers) {
return function () {
var crntDriverPos = 0;
var currentDriverIndex = 0;

function driverPromiseLoop() {
while (crntDriverPos < supportedDrivers.length) {
var driverName = supportedDrivers[crntDriverPos];
crntDriverPos++;
while (currentDriverIndex < supportedDrivers.length) {
var driverName = supportedDrivers[currentDriverIndex];
currentDriverIndex++;

self._dbInfo = null;
self._ready = null;
Expand Down
14 changes: 7 additions & 7 deletions src/localforage.js
Expand Up @@ -310,16 +310,16 @@

function initDriver(supportedDrivers) {
return function() {
var crntDriverPos = 0;
var currentDriverIndex = 0;

function driverPromiseLoop() {
while (crntDriverPos < supportedDrivers.length) {
var driverName = supportedDrivers[crntDriverPos];
crntDriverPos++;
while (currentDriverIndex < supportedDrivers.length) {
var driverName = supportedDrivers[currentDriverIndex];
currentDriverIndex++;

self._dbInfo = null;
self._ready = null;

return self.getDriver(driverName)
.then(driver => {
self._extend(driver);
Expand Down Expand Up @@ -352,7 +352,7 @@
var driverName = supportedDrivers[0];
self._dbInfo = null;
self._ready = null;

return self.getDriver(driverName)
.then(driver => {
self._driver = driver._driver;
Expand Down

0 comments on commit 57e67d9

Please sign in to comment.