Commits

Matthew Schinckel  committed 76ee007

Allow passing options to Garmin.Communicator from GarminViewModel.

  • Participants
  • Parent commits d8d0e0c

Comments (0)

Files changed (1)

File contrib/knockout.garmin.js

-var GarminViewModel = function GarminViewModel() {
-  var plugin = new Garmin.Communicator();
+var GarminViewModel = function GarminViewModel(options) {
+  var plugin = new Garmin.Communicator(options);
   var devices = ko.observableArray([]);
   var selectedDevice = ko.observable(null);
   var busy = ko.observable(false);