Skip to content

Commit 5d36813

Browse files
committed
upgrade to AngularJS 1.0.0rc6 runny-nose
1 parent 0a29959 commit 5d36813

14 files changed

+1456
-1119
lines changed

app/lib/angular/angular-cookies.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @license AngularJS v1.0.0rc5
3-
* (c) 2010-2012 AngularJS http://angularjs.org
2+
* @license AngularJS v1.0.0rc6
3+
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
66
(function(angular) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
AngularJS v1.0.0rc5
3-
(c) 2010-2012 AngularJS http://angularjs.org
2+
AngularJS v1.0.0rc6
3+
(c) 2010-2012 Google, Inc. http://angularjs.org
44
License: MIT
55
*/
66
(function(f){'use strict';f.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(d,c){var b={},g={},h,i=!1,j=f.copy,k=f.isUndefined;c.addPollFn(function(){var a=c.cookies();h!=a&&(h=a,j(a,g),j(a,b),i&&d.$apply())})();i=!0;d.$watch(function(){var a,e,d;for(a in g)k(b[a])&&c.cookies(a,void 0);for(a in b)e=b[a],f.isString(e)?e!==g[a]&&(c.cookies(a,e),d=!0):f.isDefined(g[a])?b[a]=g[a]:delete b[a];if(d)for(a in e=c.cookies(),b)b[a]!==e[a]&&(k(e[a])?delete b[a]:b[a]=e[a])});return b}]).factory("$cookieStore",

app/lib/angular/angular-loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @license AngularJS v1.0.0rc5
3-
* (c) 2010-2012 AngularJS http://angularjs.org
2+
* @license AngularJS v1.0.0rc6
3+
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
66

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
AngularJS v1.0.0rc5
3-
(c) 2010-2012 AngularJS http://angularjs.org
2+
AngularJS v1.0.0rc6
3+
(c) 2010-2012 Google, Inc. http://angularjs.org
44
License: MIT
55
*/
66
(function(i){'use strict';function d(c,b,e){return c[b]||(c[b]=e())}return d(d(i,"angular",Object),"module",function(){var c={};return function(b,e,f){e&&c.hasOwnProperty(b)&&(c[b]=null);return d(c,b,function(){function a(a,b,d){return function(){c[d||"push"]([a,b,arguments]);return g}}if(!e)throw Error("No module: "+b);var c=[],d=[],h=a("$injector","invoke"),g={_invokeQueue:c,_runBlocks:d,requires:e,name:b,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),

app/lib/angular/angular-resource.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @license AngularJS v1.0.0rc5
3-
* (c) 2010-2012 AngularJS http://angularjs.org
2+
* @license AngularJS v1.0.0rc6
3+
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
66
(function(angular) {
@@ -106,23 +106,23 @@
106106
});
107107
108108
// We can retrieve a collection from the server
109-
var cards = CreditCard.query();
110-
// GET: /user/123/card
111-
// server returns: [ {id:456, number:'1234', name:'Smith'} ];
112-
113-
var card = cards[0];
114-
// each item is an instance of CreditCard
115-
expect(card instanceof CreditCard).toEqual(true);
116-
card.name = "J. Smith";
117-
// non GET methods are mapped onto the instances
118-
card.$save();
119-
// POST: /user/123/card/456 {id:456, number:'1234', name:'J. Smith'}
120-
// server returns: {id:456, number:'1234', name: 'J. Smith'};
121-
122-
// our custom method is mapped as well.
123-
card.$charge({amount:9.99});
124-
// POST: /user/123/card/456?amount=9.99&charge=true {id:456, number:'1234', name:'J. Smith'}
125-
// server returns: {id:456, number:'1234', name: 'J. Smith'};
109+
var cards = CreditCard.query(function() {
110+
// GET: /user/123/card
111+
// server returns: [ {id:456, number:'1234', name:'Smith'} ];
112+
113+
var card = cards[0];
114+
// each item is an instance of CreditCard
115+
expect(card instanceof CreditCard).toEqual(true);
116+
card.name = "J. Smith";
117+
// non GET methods are mapped onto the instances
118+
card.$save();
119+
// POST: /user/123/card/456 {id:456, number:'1234', name:'J. Smith'}
120+
// server returns: {id:456, number:'1234', name: 'J. Smith'};
121+
122+
// our custom method is mapped as well.
123+
card.$charge({amount:9.99});
124+
// POST: /user/123/card/456?amount=9.99&charge=true {id:456, number:'1234', name:'J. Smith'}
125+
});
126126
127127
// we can create an instance as well
128128
var newCard = new CreditCard({number:'0123'});
@@ -324,7 +324,7 @@ angular.module('ngResource', ['ng']).
324324
}
325325

326326
forEach(actions, function(action, name) {
327-
var isPostOrPut = action.method == 'POST' || action.method == 'PUT';
327+
var hasBody = action.method == 'POST' || action.method == 'PUT' || action.method == 'PATCH';
328328
Resource[name] = function(a1, a2, a3, a4) {
329329
var params = {};
330330
var data;
@@ -355,7 +355,7 @@ angular.module('ngResource', ['ng']).
355355
}
356356
case 1:
357357
if (isFunction(a1)) success = a1;
358-
else if (isPostOrPut) data = a1;
358+
else if (hasBody) data = a1;
359359
else params = a1;
360360
break;
361361
case 0: break;
@@ -415,7 +415,7 @@ angular.module('ngResource', ['ng']).
415415
throw "Expected between 1-3 arguments [params, success, error], got " +
416416
arguments.length + " arguments.";
417417
}
418-
var data = isPostOrPut ? this : undefined;
418+
var data = hasBody ? this : undefined;
419419
Resource[name].call(this, params, data, success, error);
420420
};
421421
});

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

Lines changed: 5 additions & 5 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @license AngularJS v1.0.0rc5
3-
* (c) 2010-2012 AngularJS http://angularjs.org
2+
* @license AngularJS v1.0.0rc6
3+
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
66
(function(angular) {

app/lib/angular/angular-sanitize.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.

0 commit comments

Comments
 (0)