Kaydet (Commit) 8606bea3 authored tarafından Tim Graham's avatar Tim Graham

Fixed JavaScript space-before-function-paren violations.

üst ac616494
......@@ -35,7 +35,7 @@
"always"
],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"space-infix-ops": [
1,
{"int32Hint": false}
......
......@@ -244,7 +244,7 @@ function getStyle(oElm, strCssRule) {
strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule);
}
else if(oElm.currentStyle) {
strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1) {
strCssRule = strCssRule.replace(/\-(\w)/g, function(strMatch, p1) {
return p1.toUpperCase();
});
strValue = oElm.currentStyle[strCssRule];
......
......@@ -12,7 +12,7 @@
return this.each(function() {
var prepopulatedField = $(this);
var populate = function () {
var populate = function() {
// Bail if the field's value has been changed by the user
if (prepopulatedField.data('_changed')) {
return;
......
......@@ -355,11 +355,11 @@ MapWidget.prototype.addSelectControl = function() {
select.activate();
};
MapWidget.prototype.enableDrawing = function () {
MapWidget.prototype.enableDrawing = function() {
this.map.getControlsByClass('OpenLayers.Control.DrawFeature')[0].activate();
};
MapWidget.prototype.enableEditing = function () {
MapWidget.prototype.enableEditing = function() {
this.map.getControlsByClass('OpenLayers.Control.ModifyFeature')[0].activate();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment