aboutsummaryrefslogtreecommitdiffstats
path: root/src/service
diff options
context:
space:
mode:
authorIgor Minar2011-07-17 01:05:43 -0700
committerIgor Minar2011-07-18 12:12:55 -0700
commitfe5240732d0a80b8717be77b31d51dc3c4d737fd (patch)
tree10ae66804417087e53df8df657de5f00ff888293 /src/service
parentb98c23274b4dd51205d5020a254ac53966c9ae9a (diff)
downloadangular.js-fe5240732d0a80b8717be77b31d51dc3c4d737fd.tar.bz2
feat(strict mode): adding strict mode flag to all js files
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
Diffstat (limited to 'src/service')
-rw-r--r--src/service/cookieStore.js2
-rw-r--r--src/service/cookies.js2
-rw-r--r--src/service/defer.js2
-rw-r--r--src/service/document.js2
-rw-r--r--src/service/exceptionHandler.js2
-rw-r--r--src/service/hover.js2
-rw-r--r--src/service/invalidWidgets.js2
-rw-r--r--src/service/location.js2
-rw-r--r--src/service/log.js2
-rw-r--r--src/service/resource.js2
-rw-r--r--src/service/route.js2
-rw-r--r--src/service/updateView.js2
-rw-r--r--src/service/window.js2
-rw-r--r--src/service/xhr.bulk.js2
-rw-r--r--src/service/xhr.cache.js2
-rw-r--r--src/service/xhr.error.js2
-rw-r--r--src/service/xhr.js2
17 files changed, 34 insertions, 0 deletions
diff --git a/src/service/cookieStore.js b/src/service/cookieStore.js
index 089e4578..facce284 100644
--- a/src/service/cookieStore.js
+++ b/src/service/cookieStore.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/cookies.js b/src/service/cookies.js
index 86e55fc1..d6be1364 100644
--- a/src/service/cookies.js
+++ b/src/service/cookies.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/defer.js b/src/service/defer.js
index 39023fba..551e8bc9 100644
--- a/src/service/defer.js
+++ b/src/service/defer.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/document.js b/src/service/document.js
index fe8670c6..37a5bba2 100644
--- a/src/service/document.js
+++ b/src/service/document.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/exceptionHandler.js b/src/service/exceptionHandler.js
index 798c9610..aa4eed47 100644
--- a/src/service/exceptionHandler.js
+++ b/src/service/exceptionHandler.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/hover.js b/src/service/hover.js
index fca18130..f8470370 100644
--- a/src/service/hover.js
+++ b/src/service/hover.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/invalidWidgets.js b/src/service/invalidWidgets.js
index 87c15f0d..b7ef0b53 100644
--- a/src/service/invalidWidgets.js
+++ b/src/service/invalidWidgets.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/location.js b/src/service/location.js
index f03dc009..1889266e 100644
--- a/src/service/location.js
+++ b/src/service/location.js
@@ -1,3 +1,5 @@
+'use strict';
+
var URL_MATCH = /^(file|ftp|http|https):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,
HASH_MATCH = /^([^\?]*)?(\?([^\?]*))?$/,
DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp':21};
diff --git a/src/service/log.js b/src/service/log.js
index 54265096..b4d33bc9 100644
--- a/src/service/log.js
+++ b/src/service/log.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/resource.js b/src/service/resource.js
index 3cb7b6e8..31d7ceeb 100644
--- a/src/service/resource.js
+++ b/src/service/resource.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/route.js b/src/service/route.js
index b04c5ebb..9534968a 100644
--- a/src/service/route.js
+++ b/src/service/route.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/updateView.js b/src/service/updateView.js
index 2e93e91c..d504772c 100644
--- a/src/service/updateView.js
+++ b/src/service/updateView.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/window.js b/src/service/window.js
index 6c234e81..2f3f677a 100644
--- a/src/service/window.js
+++ b/src/service/window.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/xhr.bulk.js b/src/service/xhr.bulk.js
index c6cf608c..c0940d9d 100644
--- a/src/service/xhr.bulk.js
+++ b/src/service/xhr.bulk.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/xhr.cache.js b/src/service/xhr.cache.js
index c6066a5c..42b666e1 100644
--- a/src/service/xhr.cache.js
+++ b/src/service/xhr.cache.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/xhr.error.js b/src/service/xhr.error.js
index 7f8e4a19..5dd7983b 100644
--- a/src/service/xhr.error.js
+++ b/src/service/xhr.error.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service
diff --git a/src/service/xhr.js b/src/service/xhr.js
index d26cda42..5fc5223e 100644
--- a/src/service/xhr.js
+++ b/src/service/xhr.js
@@ -1,3 +1,5 @@
+'use strict';
+
/**
* @workInProgress
* @ngdoc service