Skip to content

Commit ff2deb0

Browse files
committed
update AngularJS to v1.0.7
1 parent 4f9d5d6 commit ff2deb0

File tree

574 files changed

+65624
-679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

574 files changed

+65624
-679
lines changed

public/js/lib/angular/angular-bootstrap-prettify.js

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.5
2+
* @license AngularJS v1.0.7
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -290,6 +290,7 @@ service.getEmbeddedTemplate = ['reindentCode', function(reindentCode) {
290290

291291

292292
angular.module('bootstrapPrettify', []).directive(directive).factory(service);
293+
293294
// Copyright (C) 2006 Google Inc.
294295
//
295296
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -1829,5 +1830,6 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[
18291830
}
18301831
})();
18311832

1833+
18321834
})(window, window.angular);
18331835
angular.element(document).find('head').append('<style type="text/css">.com{color:#93a1a1;}.lit{color:#195f91;}.pun,.opn,.clo{color:#93a1a1;}.fun{color:#dc322f;}.str,.atv{color:#D14;}.kwd,.linenums .tag{color:#1e347b;}.typ,.atn,.dec,.var{color:teal;}.pln{color:#48484c;}.prettyprint{padding:8px;background-color:#f7f7f9;border:1px solid #e1e1e8;}.prettyprint.linenums{-webkit-box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;-moz-box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;box-shadow:inset 40px 0 0 #fbfbfc,inset 41px 0 0 #ececf0;}ol.linenums{margin:0 0 0 33px;}ol.linenums li{padding-left:12px;color:#bebec5;line-height:18px;text-shadow:0 1px 0 #fff;}</style>');

public/js/lib/angular/angular-bootstrap-prettify.min.js

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

public/js/lib/angular/angular-bootstrap.js

100644100755
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.5
2+
* @license AngularJS v1.0.7
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -149,6 +149,14 @@ directive.tabbable = function() {
149149
};
150150
};
151151

152+
directive.table = function() {
153+
return {
154+
restrict: 'E',
155+
link: function(scope, element, attrs) {
156+
element[0].className = 'table table-bordered table-striped code-table';
157+
}
158+
};
159+
};
152160

153161
directive.tabPane = function() {
154162
return {
@@ -163,4 +171,5 @@ directive.tabPane = function() {
163171

164172
angular.module('bootstrap', []).directive(directive);
165173

174+
166175
})(window, window.angular);

public/js/lib/angular/angular-bootstrap.min.js

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

public/js/lib/angular/angular-cookies.js

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.5
2+
* @license AngularJS v1.0.7
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -145,7 +145,8 @@ angular.module('ngCookies', ['ng']).
145145
* @returns {Object} Deserialized cookie value.
146146
*/
147147
get: function(key) {
148-
return angular.fromJson($cookies[key]);
148+
var value = $cookies[key];
149+
return value ? angular.fromJson(value) : value;
149150
},
150151

151152
/**
@@ -180,4 +181,5 @@ angular.module('ngCookies', ['ng']).
180181

181182
}]);
182183

184+
183185
})(window, window.angular);

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

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
AngularJS v1.0.5
2+
AngularJS v1.0.7
33
(c) 2010-2012 Google, Inc. http://angularjs.org
44
License: MIT
55
*/
6-
(function(m,f,l){'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,l);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",
7-
["$cookies",function(d){return{get:function(c){return f.fromJson(d[c])},put:function(c,b){d[c]=f.toJson(b)},remove:function(c){delete d[c]}}}])})(window,window.angular);
6+
(function(m,f,l){'use strict';f.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(d,b){var c={},g={},h,i=!1,j=f.copy,k=f.isUndefined;b.addPollFn(function(){var a=b.cookies();h!=a&&(h=a,j(a,g),j(a,c),i&&d.$apply())})();i=!0;d.$watch(function(){var a,e,d;for(a in g)k(c[a])&&b.cookies(a,l);for(a in c)e=c[a],f.isString(e)?e!==g[a]&&(b.cookies(a,e),d=!0):f.isDefined(g[a])?c[a]=g[a]:delete c[a];if(d)for(a in e=b.cookies(),c)c[a]!==e[a]&&(k(e[a])?delete c[a]:c[a]=e[a])});return c}]).factory("$cookieStore",
7+
["$cookies",function(d){return{get:function(b){return(b=d[b])?f.fromJson(b):b},put:function(b,c){d[b]=f.toJson(c)},remove:function(b){delete d[b]}}}])})(window,window.angular);

public/js/lib/angular/angular-loader.js

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.5
2+
* @license AngularJS v1.0.7
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -254,6 +254,7 @@ function setupModuleLoader(window) {
254254
});
255255

256256
}
257+
257258
)(window);
258259

259260
/**

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

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

public/js/lib/angular/angular-mocks.js

100644100755
Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.5
2+
* @license AngularJS v1.0.7
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*
@@ -241,10 +241,10 @@ angular.mock.$ExceptionHandlerProvider = function() {
241241
*
242242
* @param {string} mode Mode of operation, defaults to `rethrow`.
243243
*
244-
* - `rethrow`: If any errors are are passed into the handler in tests, it typically
244+
* - `rethrow`: If any errors are passed into the handler in tests, it typically
245245
* means that there is a bug in the application or test, so this mock will
246246
* make these tests fail.
247-
* - `log`: Sometimes it is desirable to test that an error is throw, for this case the `log` mode stores an
247+
* - `log`: Sometimes it is desirable to test that an error is thrown, for this case the `log` mode stores an
248248
* array of errors in `$exceptionHandler.errors`, to allow later assertion of them.
249249
* See {@link ngMock.$log#assertEmpty assertEmpty()} and
250250
* {@link ngMock.$log#reset reset()}
@@ -322,7 +322,13 @@ angular.mock.$LogProvider = function() {
322322
* @propertyOf ngMock.$log
323323
*
324324
* @description
325-
* Array of logged messages.
325+
* Array of messages logged using {@link ngMock.$log#log}.
326+
*
327+
* @example
328+
* <pre>
329+
* $log.log('Some Log');
330+
* var first = $log.log.logs.unshift();
331+
* </pre>
326332
*/
327333
$log.log.logs = [];
328334
/**
@@ -331,7 +337,13 @@ angular.mock.$LogProvider = function() {
331337
* @propertyOf ngMock.$log
332338
*
333339
* @description
334-
* Array of logged messages.
340+
* Array of messages logged using {@link ngMock.$log#warn}.
341+
*
342+
* @example
343+
* <pre>
344+
* $log.warn('Some Warning');
345+
* var first = $log.warn.logs.unshift();
346+
* </pre>
335347
*/
336348
$log.warn.logs = [];
337349
/**
@@ -340,7 +352,13 @@ angular.mock.$LogProvider = function() {
340352
* @propertyOf ngMock.$log
341353
*
342354
* @description
343-
* Array of logged messages.
355+
* Array of messages logged using {@link ngMock.$log#info}.
356+
*
357+
* @example
358+
* <pre>
359+
* $log.info('Some Info');
360+
* var first = $log.info.logs.unshift();
361+
* </pre>
344362
*/
345363
$log.info.logs = [];
346364
/**
@@ -349,7 +367,13 @@ angular.mock.$LogProvider = function() {
349367
* @propertyOf ngMock.$log
350368
*
351369
* @description
352-
* Array of logged messages.
370+
* Array of messages logged using {@link ngMock.$log#error}.
371+
*
372+
* @example
373+
* <pre>
374+
* $log.log('Some Error');
375+
* var first = $log.error.logs.unshift();
376+
* </pre>
353377
*/
354378
$log.error.logs = [];
355379
};
@@ -430,7 +454,7 @@ angular.mock.$LogProvider = function() {
430454
*
431455
* *NOTE*: this is not an injectable instance, just a globally available mock class of `Date`.
432456
*
433-
* Mock of the Date type which has its timezone specified via constroctor arg.
457+
* Mock of the Date type which has its timezone specified via constructor arg.
434458
*
435459
* The main purpose is to create Date-like instances with timezone fixed to the specified timezone
436460
* offset, so that we can test code that depends on local timezone settings without dependency on
@@ -653,10 +677,10 @@ angular.mock.dump = function(object) {
653677
* @ngdoc object
654678
* @name ngMock.$httpBackend
655679
* @description
656-
* Fake HTTP backend implementation suitable for unit testing application that use the
680+
* Fake HTTP backend implementation suitable for unit testing applications that use the
657681
* {@link ng.$http $http service}.
658682
*
659-
* *Note*: For fake http backend implementation suitable for end-to-end testing or backend-less
683+
* *Note*: For fake HTTP backend implementation suitable for end-to-end testing or backend-less
660684
* development please see {@link ngMockE2E.$httpBackend e2e $httpBackend mock}.
661685
*
662686
* During unit testing, we want our unit tests to run quickly and have no external dependencies so
@@ -1653,7 +1677,7 @@ window.jasmine && (function(window) {
16531677
* @name angular.mock.module
16541678
* @description
16551679
*
1656-
* *NOTE*: This is function is also published on window for easy access.<br>
1680+
* *NOTE*: This function is also published on window for easy access.<br>
16571681
* *NOTE*: Only available with {@link http://pivotal.github.com/jasmine/ jasmine}.
16581682
*
16591683
* This function registers a module configuration code. It collects the configuration information
@@ -1687,7 +1711,7 @@ window.jasmine && (function(window) {
16871711
* @name angular.mock.inject
16881712
* @description
16891713
*
1690-
* *NOTE*: This is function is also published on window for easy access.<br>
1714+
* *NOTE*: This function is also published on window for easy access.<br>
16911715
* *NOTE*: Only available with {@link http://pivotal.github.com/jasmine/ jasmine}.
16921716
*
16931717
* The inject function wraps a function into an injectable function. The inject() creates new
@@ -1753,7 +1777,7 @@ window.jasmine && (function(window) {
17531777
try {
17541778
injector.invoke(blockFns[i] || angular.noop, this);
17551779
} catch (e) {
1756-
if(e.stack) e.stack += '\n' + errorForStack.stack;
1780+
if(e.stack && errorForStack) e.stack += '\n' + errorForStack.stack;
17571781
throw e;
17581782
} finally {
17591783
errorForStack = null;

public/js/lib/angular/angular-resource.js

100644100755
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.5
2+
* @license AngularJS v1.0.7
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -24,6 +24,17 @@
2424
* The returned resource object has action methods which provide high-level behaviors without
2525
* the need to interact with the low level {@link ng.$http $http} service.
2626
*
27+
* # Installation
28+
* To use $resource make sure you have included the `angular-resource.js` that comes in Angular
29+
* package. You can also find this file on Google CDN, bower as well as at
30+
* {@link http://code.angularjs.org/ code.angularjs.org}.
31+
*
32+
* Finally load the module in your application:
33+
*
34+
* angular.module('app', ['ngResource']);
35+
*
36+
* and you are ready to get started!
37+
*
2738
* @param {string} url A parameterized URL template with parameters prefixed by `:` as in
2839
* `/user/:username`. If you are using a URL with a port number (e.g.
2940
* `http://example.com:8080/api`), you'll need to escape the colon character before the port
@@ -268,7 +279,7 @@ angular.module('ngResource', ['ng']).
268279
replace(/%3A/gi, ':').
269280
replace(/%24/g, '$').
270281
replace(/%2C/gi, ',').
271-
replace((pctEncodeSpaces ? null : /%20/g), '+');
282+
replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));
272283
}
273284

274285
function Route(template, defaults) {
@@ -442,4 +453,5 @@ angular.module('ngResource', ['ng']).
442453
return ResourceFactory;
443454
}]);
444455

456+
445457
})(window, window.angular);

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

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

public/js/lib/angular/angular-sanitize.js

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.0.5
2+
* @license AngularJS v1.0.7
33
* (c) 2010-2012 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -422,6 +422,7 @@ angular.module('ngSanitize').directive('ngBindHtml', ['$sanitize', function($san
422422
});
423423
};
424424
}]);
425+
425426
/**
426427
* @ngdoc filter
427428
* @name ngSanitize.filter:linky
@@ -532,4 +533,5 @@ angular.module('ngSanitize').filter('linky', function() {
532533
};
533534
});
534535

536+
535537
})(window, window.angular);

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

100644100755
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)