Commit ca448df0 authored by Pascal Hartig's avatar Pascal Hartig

Angular-Perf: Upgrade to AngularJS 1.2.9

parent c5c1a78d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "todomvc-angular-perf", "name": "todomvc-angular-perf",
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"angular": "1.2.8", "angular": "1.2.9",
"todomvc-common": "~0.1.9" "todomvc-common": "~0.1.9"
} }
} }
/** /**
* @license AngularJS v1.2.8 * @license AngularJS v1.2.9
* (c) 2010-2014 Google, Inc. http://angularjs.org * (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT * License: MIT
*/ */
...@@ -68,7 +68,7 @@ function minErr(module) { ...@@ -68,7 +68,7 @@ function minErr(module) {
return match; return match;
}); });
message = message + '\nhttp://errors.angularjs.org/1.2.8/' + message = message + '\nhttp://errors.angularjs.org/1.2.9/' +
(module ? module + '/' : '') + code; (module ? module + '/' : '') + code;
for (i = 2; i < arguments.length; i++) { for (i = 2; i < arguments.length; i++) {
message = message + (i == 2 ? '?' : '&') + 'p' + (i-2) + '=' + message = message + (i == 2 ? '?' : '&') + 'p' + (i-2) + '=' +
...@@ -271,7 +271,8 @@ function isArrayLike(obj) { ...@@ -271,7 +271,8 @@ function isArrayLike(obj) {
* is the value of an object property or an array element and `key` is the object property key or * is the value of an object property or an array element and `key` is the object property key or
* array element index. Specifying a `context` for the function is optional. * array element index. Specifying a `context` for the function is optional.
* *
* Note: this function was previously known as `angular.foreach`. * It is worth nothing that `.forEach` does not iterate over inherited properties because it filters
* using the `hasOwnProperty` method.
* *
<pre> <pre>
var values = {name: 'misko', gender: 'male'}; var values = {name: 'misko', gender: 'male'};
...@@ -1833,11 +1834,11 @@ function setupModuleLoader(window) { ...@@ -1833,11 +1834,11 @@ function setupModuleLoader(window) {
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat". * - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
*/ */
var version = { var version = {
full: '1.2.8', // all of these placeholder strings will be replaced by grunt's full: '1.2.9', // all of these placeholder strings will be replaced by grunt's
major: 1, // package task major: 1, // package task
minor: 2, minor: 2,
dot: 8, dot: 9,
codeName: 'interdimensional-cartography' codeName: 'enchanted-articulacy'
}; };
...@@ -3399,7 +3400,7 @@ function annotate(fn) { ...@@ -3399,7 +3400,7 @@ function annotate(fn) {
* constructor function that will be used to instantiate the service instance. * constructor function that will be used to instantiate the service instance.
* *
* You should use {@link AUTO.$provide#methods_service $provide.service(class)} if you define your service * You should use {@link AUTO.$provide#methods_service $provide.service(class)} if you define your service
* as a type/class. This is common when using {@link http://coffeescript.org CoffeeScript}. * as a type/class.
* *
* @param {string} name The name of the instance. * @param {string} name The name of the instance.
* @param {Function} constructor A class (constructor function) that will be instantiated. * @param {Function} constructor A class (constructor function) that will be instantiated.
...@@ -3407,20 +3408,25 @@ function annotate(fn) { ...@@ -3407,20 +3408,25 @@ function annotate(fn) {
* *
* @example * @example
* Here is an example of registering a service using * Here is an example of registering a service using
* {@link AUTO.$provide#methods_service $provide.service(class)} that is defined as a CoffeeScript class. * {@link AUTO.$provide#methods_service $provide.service(class)}.
* <pre> * <pre>
* class Ping * $provide.service('ping', ['$http', function($http) {
* constructor: (@$http) -> * var Ping = function() {
* send: () => * this.$http = $http;
* @$http.get('/ping') * };
*
* Ping.prototype.send = function() {
* return this.$http.get('/ping');
* };
* *
* $provide.service('ping', ['$http', Ping]) * return Ping;
* }]);
* </pre> * </pre>
* You would then inject and use this service like this: * You would then inject and use this service like this:
* <pre> * <pre>
* someModule.controller 'Ctrl', ['ping', (ping) -> * someModule.controller('Ctrl', ['ping', function(ping) {
* ping.send() * ping.send();
* ] * }]);
* </pre> * </pre>
*/ */
...@@ -6945,9 +6951,9 @@ function $HttpProvider() { ...@@ -6945,9 +6951,9 @@ function $HttpProvider() {
common: { common: {
'Accept': 'application/json, text/plain, */*' 'Accept': 'application/json, text/plain, */*'
}, },
post: CONTENT_TYPE_APPLICATION_JSON, post: copy(CONTENT_TYPE_APPLICATION_JSON),
put: CONTENT_TYPE_APPLICATION_JSON, put: copy(CONTENT_TYPE_APPLICATION_JSON),
patch: CONTENT_TYPE_APPLICATION_JSON patch: copy(CONTENT_TYPE_APPLICATION_JSON)
}, },
xsrfCookieName: 'XSRF-TOKEN', xsrfCookieName: 'XSRF-TOKEN',
...@@ -11836,7 +11842,7 @@ function $RootScopeProvider(){ ...@@ -11836,7 +11842,7 @@ function $RootScopeProvider(){
// `break traverseScopesLoop;` takes us to here // `break traverseScopesLoop;` takes us to here
if(dirty && !(ttl--)) { if((dirty || asyncQueue.length) && !(ttl--)) {
clearPhase(); clearPhase();
throw $rootScopeMinErr('infdig', throw $rootScopeMinErr('infdig',
'{0} $digest() iterations reached. Aborting!\n' + '{0} $digest() iterations reached. Aborting!\n' +
...@@ -12687,7 +12693,7 @@ function $SceDelegateProvider() { ...@@ -12687,7 +12693,7 @@ function $SceDelegateProvider() {
* *
* @param {*} value The result of a prior {@link ng.$sceDelegate#methods_trustAs `$sceDelegate.trustAs`} * @param {*} value The result of a prior {@link ng.$sceDelegate#methods_trustAs `$sceDelegate.trustAs`}
* call or anything else. * call or anything else.
* @returns {*} The value the was originally provided to {@link ng.$sceDelegate#methods_trustAs * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#methods_trustAs
* `$sceDelegate.trustAs`} if `value` is the result of such a call. Otherwise, returns * `$sceDelegate.trustAs`} if `value` is the result of such a call. Otherwise, returns
* `value` unchanged. * `value` unchanged.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment