Skip to content

Commit

Permalink
Adapters are now added to the end of the list.
Browse files Browse the repository at this point in the history
Array.prototype.splice is still used to mutate the array in-place, but it now adds the adapters to the end of the list to make them listed in "failback order".
  • Loading branch information
MarkMYoung committed Feb 29, 2016
1 parent 891ea0d commit 0990c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lawnchair.js
Expand Up @@ -92,7 +92,7 @@ Lawnchair.adapter = function (id, obj) {
}
// if we made it this far the adapter interface is valid
// insert the new adapter as the preferred adapter
Lawnchair.adapters.splice(0,0,obj)
Lawnchair.adapters.splice(Lawnchair.adapters.length,0,obj)
}

Lawnchair.plugins = []
Expand Down

0 comments on commit 0990c34

Please sign in to comment.