Skip to content
Snippets Groups Projects
Commit a10e6d00 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

Fix some $ in js files.

parent aecfc6d0
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* GMap API version / Base case * GMap API version / Base case
*/ */
/*global $, Drupal, GEvent, GLatLng, GPolygon, GPolyline */ /*global jQuery, Drupal, GEvent, GLatLng, GPolygon, GPolyline */
Drupal.gmap.addHandler('gmap', function (elem) { Drupal.gmap.addHandler('gmap', function (elem) {
var obj = this; var obj = this;
...@@ -32,12 +32,12 @@ Drupal.gmap.addHandler('gmap', function (elem) { ...@@ -32,12 +32,12 @@ Drupal.gmap.addHandler('gmap', function (elem) {
pa = obj.poly.calcPolyPoints(shape.center, radius, shape.numpoints); pa = obj.poly.calcPolyPoints(shape.center, radius, shape.numpoints);
} }
else if (shape.type === 'polygon') { else if (shape.type === 'polygon') {
$.each(shape.points, function (i, n) { jQuery.each(shape.points, function (i, n) {
pa.push(new GLatLng(n[0], n[1])); pa.push(new GLatLng(n[0], n[1]));
}); });
} }
else if (shape.type === 'line') { else if (shape.type === 'line') {
$.each(shape.points, function (i, n) { jQuery.each(shape.points, function (i, n) {
pa.push(new GLatLng(n[0], n[1])); pa.push(new GLatLng(n[0], n[1]));
}); });
fillstyle = false; fillstyle = false;
...@@ -75,7 +75,7 @@ Drupal.gmap.addHandler('gmap', function (elem) { ...@@ -75,7 +75,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
shape.opacity = style[2]; shape.opacity = style[2];
} }
else if (shape.type == 'encoded_polygon') { else if (shape.type == 'encoded_polygon') {
$.each(shape.polylines, function(i, polyline) { jQuery.each(shape.polylines, function(i, polyline) {
polyline.color = style[0]; polyline.color = style[0];
polyline.weight = style[1]; polyline.weight = style[1];
polyline.opacity = style[2]; polyline.opacity = style[2];
...@@ -86,7 +86,7 @@ Drupal.gmap.addHandler('gmap', function (elem) { ...@@ -86,7 +86,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
shape.outline = true; shape.outline = true;
} }
$.each(style, function (i, n) { jQuery.each(style, function (i, n) {
cargs.push(n); cargs.push(n);
}); });
if (shape.opts) { if (shape.opts) {
...@@ -138,7 +138,7 @@ Drupal.gmap.addHandler('gmap', function (elem) { ...@@ -138,7 +138,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
obj.bind('clearshapes', function () { obj.bind('clearshapes', function () {
if (obj.vars.shapes) { if (obj.vars.shapes) {
$.each(obj.vars.shapes, function (i, n) { jQuery.each(obj.vars.shapes, function (i, n) {
obj.change('delshape', -1, n); obj.change('delshape', -1, n);
}); });
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Commonly used with macros. * Commonly used with macros.
*/ */
/*global $, Drupal */ /*global jQuery, Drupal */
// Add a gmap handler // Add a gmap handler
Drupal.gmap.addHandler('gmap', function (elem) { Drupal.gmap.addHandler('gmap', function (elem) {
...@@ -21,7 +21,7 @@ Drupal.gmap.addHandler('gmap', function (elem) { ...@@ -21,7 +21,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
// Store the shapes in s and reset obj.vars.shapes. // Store the shapes in s and reset obj.vars.shapes.
var s = obj.vars.shapes; var s = obj.vars.shapes;
obj.vars.shapes = []; obj.vars.shapes = [];
$.each(s, function (i, shape) { jQuery.each(s, function (i, shape) {
if (!shape.opts) { if (!shape.opts) {
shape.opts = {}; shape.opts = {};
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment