Skip to content

Commit

Permalink
Updated to AngularJS v1.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
loneleeandroo committed Mar 10, 2014
1 parent ef88e50 commit b9eab83
Show file tree
Hide file tree
Showing 9 changed files with 2,463 additions and 2,040 deletions.
930 changes: 529 additions & 401 deletions lib/angular-animate.js

Large diffs are not rendered by default.

33 changes: 14 additions & 19 deletions lib/angular-cookies.js
@@ -1,20 +1,19 @@
/**
* @license AngularJS v1.2.11
* @license AngularJS v1.2.14
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';

/**
* @ngdoc overview
* @ngdoc module
* @name ngCookies
* @description
*
* # ngCookies
*
* The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies.
* The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies.
*
* {@installModule cookies}
*
* <div doc-module-components="ngCookies"></div>
*
Expand All @@ -25,9 +24,8 @@

angular.module('ngCookies', ['ng']).
/**
* @ngdoc object
* @name ngCookies.$cookies
* @requires $browser
* @ngdoc service
* @name $cookies
*
* @description
* Provides read/write access to browser's cookies.
Expand All @@ -38,8 +36,8 @@ angular.module('ngCookies', ['ng']).
* Requires the {@link ngCookies `ngCookies`} module to be installed.
*
* @example
<doc:example>
<doc:source>
<example>
<file name="index.html">
<script>
function ExampleController($cookies) {
// Retrieving a cookie
Expand All @@ -48,8 +46,8 @@ angular.module('ngCookies', ['ng']).
$cookies.myFavorite = 'oatmeal';
}
</script>
</doc:source>
</doc:example>
</file>
</example>
*/
factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) {
var cookies = {},
Expand Down Expand Up @@ -134,8 +132,8 @@ angular.module('ngCookies', ['ng']).


/**
* @ngdoc object
* @name ngCookies.$cookieStore
* @ngdoc service
* @name $cookieStore
* @requires $cookies
*
* @description
Expand All @@ -152,8 +150,7 @@ angular.module('ngCookies', ['ng']).
return {
/**
* @ngdoc method
* @name ngCookies.$cookieStore#get
* @methodOf ngCookies.$cookieStore
* @name $cookieStore#get
*
* @description
* Returns the value of given cookie key
Expand All @@ -168,8 +165,7 @@ angular.module('ngCookies', ['ng']).

/**
* @ngdoc method
* @name ngCookies.$cookieStore#put
* @methodOf ngCookies.$cookieStore
* @name $cookieStore#put
*
* @description
* Sets a value for given cookie key
Expand All @@ -183,8 +179,7 @@ angular.module('ngCookies', ['ng']).

/**
* @ngdoc method
* @name ngCookies.$cookieStore#remove
* @methodOf ngCookies.$cookieStore
* @name $cookieStore#remove
*
* @description
* Remove given cookie
Expand Down
5 changes: 5 additions & 0 deletions lib/angular-csp.css
Expand Up @@ -11,3 +11,8 @@
ng\:form {
display: block;
}

.ng-animate-block-transitions {
transition:0s all!important;
-webkit-transition:0s all!important;
}
69 changes: 35 additions & 34 deletions lib/angular-resource.js
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.2.11
* @license AngularJS v1.2.14
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -40,7 +40,7 @@ function shallowClearAndCopy(src, dst) {
});

for (var key in src) {
if (src.hasOwnProperty(key) && key.charAt(0) !== '$' && key.charAt(1) !== '$') {
if (src.hasOwnProperty(key) && !(key.charAt(0) === '$' && key.charAt(1) === '$')) {
dst[key] = src[key];
}
}
Expand All @@ -49,7 +49,7 @@ function shallowClearAndCopy(src, dst) {
}

/**
* @ngdoc overview
* @ngdoc module
* @name ngResource
* @description
*
Expand All @@ -58,16 +58,15 @@ function shallowClearAndCopy(src, dst) {
* The `ngResource` module provides interaction support with RESTful services
* via the $resource service.
*
* {@installModule resource}
*
* <div doc-module-components="ngResource"></div>
*
* See {@link ngResource.$resource `$resource`} for usage.
*/

/**
* @ngdoc object
* @name ngResource.$resource
* @ngdoc service
* @name $resource
* @requires $http
*
* @description
Expand Down Expand Up @@ -103,8 +102,8 @@ function shallowClearAndCopy(src, dst) {
* If the parameter value is prefixed with `@` then the value of that parameter is extracted from
* the data object (useful for non-GET operations).
*
* @param {Object.<Object>=} actions Hash with declaration of custom action that should extend the
* default set of resource actions. The declaration should be created in the format of {@link
* @param {Object.&lt;Object&gt;=} actions Hash with declaration of custom action that should extend
* the default set of resource actions. The declaration should be created in the format of {@link
* ng.$http#usage_parameters $http.config}:
*
* {action1: {method:?, params:?, isArray:?, headers:?, ...},
Expand Down Expand Up @@ -139,35 +138,37 @@ function shallowClearAndCopy(src, dst) {
* - **`timeout`** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise} that
* should abort the request when resolved.
* - **`withCredentials`** - `{boolean}` - whether to set the `withCredentials` flag on the
* XHR object. See {@link https://developer.mozilla.org/en/http_access_control#section_5
* requests with credentials} for more information.
* - **`responseType`** - `{string}` - see {@link
* https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType requestType}.
* XHR object. See
* [requests with credentials](https://developer.mozilla.org/en/http_access_control#section_5)
* for more information.
* - **`responseType`** - `{string}` - see
* [requestType](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType).
* - **`interceptor`** - `{Object=}` - The interceptor object has two optional methods -
* `response` and `responseError`. Both `response` and `responseError` interceptors get called
* with `http response` object. See {@link ng.$http $http interceptors}.
*
* @returns {Object} A resource "class" object with methods for the default set of resource actions
* optionally extended with custom `actions`. The default set contains these actions:
*
* { 'get': {method:'GET'},
* 'save': {method:'POST'},
* 'query': {method:'GET', isArray:true},
* 'remove': {method:'DELETE'},
* 'delete': {method:'DELETE'} };
* ```js
* { 'get': {method:'GET'},
* 'save': {method:'POST'},
* 'query': {method:'GET', isArray:true},
* 'remove': {method:'DELETE'},
* 'delete': {method:'DELETE'} };
* ```
*
* Calling these methods invoke an {@link ng.$http} with the specified http method,
* destination and parameters. When the data is returned from the server then the object is an
* instance of the resource class. The actions `save`, `remove` and `delete` are available on it
* as methods with the `$` prefix. This allows you to easily perform CRUD operations (create,
* read, update, delete) on server-side data like this:
* <pre>
var User = $resource('/user/:userId', {userId:'@id'});
var user = User.get({userId:123}, function() {
user.abc = true;
user.$save();
});
</pre>
* ```js
* var User = $resource('/user/:userId', {userId:'@id'});
* var user = User.get({userId:123}, function() {
* user.abc = true;
* user.$save();
* });
* ```
*
* It is important to realize that invoking a $resource object method immediately returns an
* empty reference (object or array depending on `isArray`). Once the data is returned from the
Expand Down Expand Up @@ -211,7 +212,7 @@ function shallowClearAndCopy(src, dst) {
*
* # Credit card resource
*
* <pre>
* ```js
// Define CreditCard class
var CreditCard = $resource('/user/:userId/card/:cardId',
{userId:123, cardId:'@id'}, {
Expand Down Expand Up @@ -244,7 +245,7 @@ function shallowClearAndCopy(src, dst) {
// POST: /user/123/card {number:'0123', name:'Mike Smith'}
// server returns: {id:789, number:'0123', name: 'Mike Smith'};
expect(newCard.id).toEqual(789);
* </pre>
* ```
*
* The object returned from this function execution is a resource "class" which has "static" method
* for each action in the definition.
Expand All @@ -255,19 +256,19 @@ function shallowClearAndCopy(src, dst) {
* all of the non-GET methods are available with `$` prefix. This allows you to easily support CRUD
* operations (create, read, update, delete) on server-side data.
<pre>
```js
var User = $resource('/user/:userId', {userId:'@id'});
var user = User.get({userId:123}, function() {
user.abc = true;
user.$save();
});
</pre>
```
*
* It's worth noting that the success callback for `get`, `query` and other methods gets passed
* in the response that came from the server as well as $http header getter function, so one
* could rewrite the above example and get access to http headers as:
*
<pre>
```js
var User = $resource('/user/:userId', {userId:'@id'});
User.get({userId:123}, function(u, getResponseHeaders){
u.abc = true;
Expand All @@ -276,15 +277,15 @@ function shallowClearAndCopy(src, dst) {
//putResponseHeaders => $http header getter
});
});
</pre>
```
* # Creating a custom 'PUT' request
* In this example we create a custom method on our resource to make a PUT request
* <pre>
* ```js
* var app = angular.module('app', ['ngResource', 'ngRoute']);
*
* // Some APIs expect a PUT request in the format URL/object/ID
* // Here we are creating an 'update' method
* // Here we are creating an 'update' method
* app.factory('Notes', ['$resource', function($resource) {
* return $resource('/notes/:id', null,
* {
Expand All @@ -305,7 +306,7 @@ function shallowClearAndCopy(src, dst) {
*
* // This will PUT /notes/ID with the note object in the request payload
* }]);
* </pre>
* ```
*/
angular.module('ngResource', ['ng']).
factory('$resource', ['$http', '$q', function($http, $q) {
Expand Down

0 comments on commit b9eab83

Please sign in to comment.