Skip to content

Commit

Permalink
Update angular to 1.0.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Mar 14, 2012
1 parent 9806336 commit a3e1e00
Show file tree
Hide file tree
Showing 9 changed files with 13,254 additions and 10,627 deletions.
55 changes: 46 additions & 9 deletions app/lib/angular/angular-loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license AngularJS v0.10.6
* @license AngularJS v1.0.0rc1
* (c) 2010-2012 AngularJS http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -59,7 +59,8 @@ function setupModuleLoader(window) {
* var injector = angular.injector(['ng', 'MyModule'])
* </pre>
*
* However it's more likely that you'll just use {@link angular.directive.ng:app ng:app} or
* However it's more likely that you'll just use
* {@link angular.module.ng.$compileProvider.directive.ng-app ng-app} or
* {@link angular.bootstrap} to simplify this process for you.
*
* @param {!string} name The name of the module to create or retrieve.
Expand Down Expand Up @@ -114,14 +115,14 @@ function setupModuleLoader(window) {

/**
* @ngdoc method
* @name angular.Module#service
* @name angular.Module#provider
* @methodOf angular.Module
* @param {string} name service name
* @param {Function} providerType Construction function for creating new instance of the service.
* @description
* See {@link angular.module.AUTO.$provide#service $provide.service()}.
* See {@link angular.module.AUTO.$provide#provider $provide.provider()}.
*/
service: invokeLater('$provide', 'service'),
provider: invokeLater('$provide', 'provider'),

/**
* @ngdoc method
Expand All @@ -130,10 +131,21 @@ function setupModuleLoader(window) {
* @param {string} name service name
* @param {Function} providerFunction Function for creating new instance of the service.
* @description
* See {@link angular.module.AUTO.$provide#service $provide.factory()}.
* See {@link angular.module.AUTO.$provide#factory $provide.factory()}.
*/
factory: invokeLater('$provide', 'factory'),

/**
* @ngdoc method
* @name angular.Module#service
* @methodOf angular.Module
* @param {string} name service name
* @param {Function} constructor A constructor function that will be instantiated.
* @description
* See {@link angular.module.AUTO.$provide#service $provide.service()}.
*/
service: invokeLater('$provide', 'service'),

/**
* @ngdoc method
* @name angular.Module#value
Expand All @@ -145,17 +157,41 @@ function setupModuleLoader(window) {
*/
value: invokeLater('$provide', 'value'),

/**
* @ngdoc method
* @name angular.Module#constant
* @methodOf angular.Module
* @param {string} name constant name
* @param {*} object Constant value.
* @description
* Because the constant are fixed, they get applied before other provide methods.
* See {@link angular.module.AUTO.$provide#constant $provide.constant()}.
*/
constant: invokeLater('$provide', 'constant', 'unshift'),

/**
* @ngdoc method
* @name angular.Module#filter
* @methodOf angular.Module
* @param {string} name filterr name
* @param {string} name filter name
* @param {Function} filterFactory Factory function for creating new instance of filter.
* @description
* See {@link angular.module.ng.$filterProvider#register $filterProvider.register()}.
*/
filter: invokeLater('$filterProvider', 'register'),

/**
* @ngdoc method
* @name angular.Module#directive
* @methodOf angular.Module
* @param {string} name directive name
* @param {Function} directiveFactory Factory function for creating new instance of
* directives.
* @description
* See {@link angular.module.ng.$compileProvider.directive $compileProvider.directive()}.
*/
directive: invokeLater('$compileProvider', 'directive'),

/**
* @ngdoc method
* @name angular.Module#config
Expand Down Expand Up @@ -192,11 +228,12 @@ function setupModuleLoader(window) {
/**
* @param {string} provider
* @param {string} method
* @param {String=} insertMethod
* @returns {angular.Module}
*/
function invokeLater(provider, method) {
function invokeLater(provider, method, insertMethod) {
return function() {
invokeQueue.push([provider, method, arguments]);
invokeQueue[insertMethod || 'push']([provider, method, arguments]);
return moduleInstance;
}
}
Expand Down
6 changes: 3 additions & 3 deletions app/lib/angular/angular-loader.min.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
AngularJS v0.10.6
AngularJS v1.0.0rc1
(c) 2010-2012 AngularJS http://angularjs.org
License: MIT
*/
'use strict';(function(i){function d(a,b,c){return a[b]||(a[b]=c())}return d(d(i,"angular",Object),"module",function(){var a={};return function(b,c,e){c&&a.hasOwnProperty(b)&&(a[b]=null);return d(a,b,function(){function a(b,c){return function(){d.push([b,c,arguments]);return f}}if(!c)throw Error("No module: "+b);var d=[],g=[],h=a("$injector","invoke"),f={_invokeQueue:d,_runBlocks:g,requires:c,name:b,service:a("$provide","service"),factory:a("$provide","factory"),value:a("$provide","value"),filter:a("$filterProvider",
"register"),config:h,run:function(a){g.push(a);return this}};e&&h(e);return f})}})})(window);
'use strict';(function(i){function d(c,a,e){return c[a]||(c[a]=e())}return d(d(i,"angular",Object),"module",function(){var c={};return function(a,e,f){e&&c.hasOwnProperty(a)&&(c[a]=null);return d(c,a,function(){function b(a,b,d){return function(){c[d||"push"]([a,b,arguments]);return g}}if(!e)throw Error("No module: "+a);var c=[],d=[],h=b("$injector","invoke"),g={_invokeQueue:c,_runBlocks:d,requires:e,name:a,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),
value:b("$provide","value"),constant:b("$provide","constant","unshift"),filter:b("$filterProvider","register"),directive:b("$compileProvider","directive"),config:h,run:function(a){d.push(a);return this}};f&&h(f);return g})}})})(window);
Loading

0 comments on commit a3e1e00

Please sign in to comment.