Skip to content

Commit 07ffa8c

Browse files
committed
update angular to 1.0.5
1 parent e9f4115 commit 07ffa8c

14 files changed

+575
-304
lines changed

app/lib/angular/angular-cookies.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.4
2+
* @license AngularJS v1.0.5
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -25,6 +25,18 @@ angular.module('ngCookies', ['ng']).
2525
* this object, new cookies are created/deleted at the end of current $eval.
2626
*
2727
* @example
28+
<doc:example>
29+
<doc:source>
30+
<script>
31+
function ExampleController($cookies) {
32+
// Retrieving a cookie
33+
var favoriteCookie = $cookies.myFavorite;
34+
// Setting a cookie
35+
$cookies.myFavorite = 'oatmeal';
36+
}
37+
</script>
38+
</doc:source>
39+
</doc:example>
2840
*/
2941
factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) {
3042
var cookies = {},

app/lib/angular/angular-cookies.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
AngularJS v1.0.4
2+
AngularJS v1.0.5
33
(c) 2010-2012 Google, Inc. http://angularjs.org
44
License: MIT
55
*/

app/lib/angular/angular-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.4
2+
* @license AngularJS v1.0.5
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

app/lib/angular/angular-loader.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
AngularJS v1.0.4
2+
AngularJS v1.0.5
33
(c) 2010-2012 Google, Inc. http://angularjs.org
44
License: MIT
55
*/

app/lib/angular/angular-resource.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.4
2+
* @license AngularJS v1.0.5
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -69,9 +69,9 @@
6969
*
7070
* Calling these methods invoke an {@link ng.$http} with the specified http method,
7171
* destination and parameters. When the data is returned from the server then the object is an
72-
* instance of the resource class `save`, `remove` and `delete` actions are available on it as
73-
* methods with the `$` prefix. This allows you to easily perform CRUD operations (create, read,
74-
* update, delete) on server-side data like this:
72+
* instance of the resource class. The actions `save`, `remove` and `delete` are available on it
73+
* as methods with the `$` prefix. This allows you to easily perform CRUD operations (create,
74+
* read, update, delete) on server-side data like this:
7575
* <pre>
7676
var User = $resource('/user/:userId', {userId:'@id'});
7777
var user = User.get({userId:123}, function() {
@@ -151,9 +151,9 @@
151151
});
152152
</pre>
153153
*
154-
* It's worth noting that the success callback for `get`, `query` and other method gets passed
155-
* in the response that came from the server as well as $http header getter function, so one
156-
* could rewrite the above example and get access to http headers as:
154+
* It's worth noting that the success callback for `get`, `query` and other method gets passed
155+
* in the response that came from the server as well as $http header getter function, so one
156+
* could rewrite the above example and get access to http headers as:
157157
*
158158
<pre>
159159
var User = $resource('/user/:userId', {userId:'@id'});
@@ -276,7 +276,7 @@ angular.module('ngResource', ['ng']).
276276
this.defaults = defaults || {};
277277
var urlParams = this.urlParams = {};
278278
forEach(template.split(/\W/), function(param){
279-
if (param && template.match(new RegExp("[^\\\\]:" + param + "\\W"))) {
279+
if (param && (new RegExp("(^|[^\\\\]):" + param + "\\W").test(template))) {
280280
urlParams[param] = true;
281281
}
282282
});

app/lib/angular/angular-resource.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/lib/angular/angular-sanitize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.4
2+
* @license AngularJS v1.0.5
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

app/lib/angular/angular-sanitize.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)