Upgrade Meteor. Use keyboard for speed input.

This commit is contained in:
Juho Teperi
2013-05-07 11:24:49 +03:00
parent e19e4ad352
commit 9a97a998b6
14 changed files with 98 additions and 120 deletions

View File

@@ -10,12 +10,12 @@ helpers = {
}
};
var activateInput = function (input) {
activateInput = function (input) {
input.focus();
input.select();
};
var okCancelEvents = function (selector, callbacks) {
okCancelEvents = function (selector, callbacks) {
var ok = callbacks.ok || function () {};
var cancel = callbacks.cancel || function () {};
@@ -38,9 +38,3 @@ var okCancelEvents = function (selector, callbacks) {
};
return events;
};
// From: https://github.com/tmeasday/meteor-deps-extensions
Meteor.deps.isolate = function(fn) {
var context = new Meteor.deps.Context();
return context.run(fn);
};

View File

@@ -1,4 +1,4 @@
function maps_loaded() {
maps_loaded = function maps_loaded() {
window.markers = []; // fuu
@@ -153,7 +153,7 @@ var Maps = function () {
var point = Points.findOne({_id: point_id});
if (point) {
street.setPosition(glatlng(point.latlng));
street.setPosition(glatlng(point.latlng));
map.setCenter(glatlng(point.latlng));
if (point.heading) street.setPov({zoom: 1, pitch: 0, heading: point.heading});
@@ -170,7 +170,7 @@ $(document).ready(function () {
init_edit();
});
}
};
window.onload = function () {
var script = document.createElement("script");