diff options
| author | Vojta Jina | 2013-10-22 14:41:21 -0700 | 
|---|---|---|
| committer | Vojta Jina | 2013-10-22 15:32:41 -0700 | 
| commit | f2fab498303e00d199cb3d19a008670e214d5c10 (patch) | |
| tree | 3aa88fdb1f63bbed45c7541232a0fdfac226c126 /src/ng/log.js | |
| parent | 934a95d3ef3f72dfc37b0b564624cb4a1286d4f4 (diff) | |
| download | angular.js-f2fab498303e00d199cb3d19a008670e214d5c10.tar.bz2 | |
style: make jshint happy
Diffstat (limited to 'src/ng/log.js')
| -rw-r--r-- | src/ng/log.js | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/src/ng/log.js b/src/ng/log.js index 70911fdf..cedf0264 100644 --- a/src/ng/log.js +++ b/src/ng/log.js @@ -55,12 +55,12 @@ function $LogProvider(){     * @returns {*} current value if used as getter or itself (chaining) if used as setter     */    this.debugEnabled = function(flag) { -	  if (isDefined(flag)) { -		  debug = flag; -		  return this; -	  } else { -		  return debug; -	  } +    if (isDefined(flag)) { +      debug = flag; +    return this; +    } else { +      return debug; +    }    };    this.$get = ['$window', function($window){ @@ -114,13 +114,13 @@ function $LogProvider(){         * Write a debug message         */        debug: (function () { -    	var fn = consoleLog('debug'); -    	 -    	return function() { -    		if (debug) { -    			fn.apply(self, arguments); -    		} -    	} +        var fn = consoleLog('debug'); + +        return function() { +          if (debug) { +            fn.apply(self, arguments); +          } +        };        }())      }; @@ -155,7 +155,7 @@ function $LogProvider(){        // or we are IE where console.log doesn't have apply so we log at least first 2 args        return function(arg1, arg2) {          logFn(arg1, arg2 == null ? '' : arg2); -      } +      };      }    }];  } | 
