mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed JavaScript space-before-function-paren violations.
This commit is contained in:
		| @@ -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(); | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user