diff options
| author | Misko Hevery | 2010-08-11 12:04:02 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-08-11 12:04:02 -0700 | 
| commit | 044ecb91c10753c14e1521f95b5f0cd52ff5bf87 (patch) | |
| tree | ebe410987103d4b3193315f985c3d3564121d2a3 /src/services.js | |
| parent | 3d5719cd44868f89352ebbedd0e1b1f2575520cb (diff) | |
| download | angular.js-044ecb91c10753c14e1521f95b5f0cd52ff5bf87.tar.bz2 | |
clean up for better obfuscation
Diffstat (limited to 'src/services.js')
| -rw-r--r-- | src/services.js | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/src/services.js b/src/services.js index fa9cdaa4..a5158149 100644 --- a/src/services.js +++ b/src/services.js @@ -1,11 +1,12 @@ +var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+))?([^\?#]+)(\?([^#]*))?(#(.*))?$/, +    HASH_MATCH = /^([^\?]*)?(\?([^\?]*))?$/, +    DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp':21}; +  angularService("$window", bind(window, identity, window));  angularService("$document", function(window){    return jqLite(window.document);  }, {inject:['$window']}); -var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+))?([^\?#]+)(\?([^#]*))?(#(.*))?$/; -var HASH_MATCH = /^([^\?]*)?(\?([^\?]*))?$/; -var DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp':21};  angularService("$location", function(browser){    var scope = this,        location = {parse:parseUrl, toString:toString, update:update},  | 
