Fixed JavaScript space-before-function-paren violations.

This commit is contained in:
Tim Graham 2015-07-17 08:47:28 -04:00
parent ac6164948e
commit 8606bea3bc
4 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@
"always" "always"
], ],
"space-before-blocks": [2, "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": [ "space-infix-ops": [
1, 1,
{"int32Hint": false} {"int32Hint": false}

View File

@ -244,7 +244,7 @@ function getStyle(oElm, strCssRule) {
strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule); strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule);
} }
else if(oElm.currentStyle) { else if(oElm.currentStyle) {
strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1) { strCssRule = strCssRule.replace(/\-(\w)/g, function(strMatch, p1) {
return p1.toUpperCase(); return p1.toUpperCase();
}); });
strValue = oElm.currentStyle[strCssRule]; strValue = oElm.currentStyle[strCssRule];

View File

@ -12,7 +12,7 @@
return this.each(function() { return this.each(function() {
var prepopulatedField = $(this); var prepopulatedField = $(this);
var populate = function () { var populate = function() {
// Bail if the field's value has been changed by the user // Bail if the field's value has been changed by the user
if (prepopulatedField.data('_changed')) { if (prepopulatedField.data('_changed')) {
return; return;

View File

@ -355,11 +355,11 @@ MapWidget.prototype.addSelectControl = function() {
select.activate(); select.activate();
}; };
MapWidget.prototype.enableDrawing = function () { MapWidget.prototype.enableDrawing = function() {
this.map.getControlsByClass('OpenLayers.Control.DrawFeature')[0].activate(); this.map.getControlsByClass('OpenLayers.Control.DrawFeature')[0].activate();
}; };
MapWidget.prototype.enableEditing = function () { MapWidget.prototype.enableEditing = function() {
this.map.getControlsByClass('OpenLayers.Control.ModifyFeature')[0].activate(); this.map.getControlsByClass('OpenLayers.Control.ModifyFeature')[0].activate();
}; };