Add a preauth method

This commit is contained in:
John Firebaugh
2013-04-17 16:28:01 -07:00
parent a7a58d0775
commit 001078876f
+5
View File
@@ -29,6 +29,11 @@ window.iD = function () {
history.merge(result);
});
context.preauth = function(options) {
connection.switch(options);
return context;
};
/* Straight accessors. Avoid using these if you can. */
context.ui = function() { return ui; };
context.connection = function() { return connection; };