test/lib/angular/angular-loader.js in angularjs-rails-resource-0.1.4 vs test/lib/angular/angular-loader.js in angularjs-rails-resource-0.1.5

- old
+ new

@@ -1,7 +1,7 @@ /** - * @license AngularJS v1.0.2 + * @license AngularJS v1.1.4 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ ( @@ -34,11 +34,11 @@ * registered using this mechanism. * * * # Module * - * A module is a collocation of services, directives, filters, and configure information. Module + * A module is a collocation of services, directives, filters, and configuration information. Module * is used to configure the {@link AUTO.$injector $injector}. * * <pre> * // Create a new module * var myModule = angular.module('myModule', []); @@ -65,11 +65,11 @@ * {@link angular.bootstrap} to simplify this process for you. * * @param {!string} name The name of the module to create or retrieve. * @param {Array.<string>=} requires If specified then new module is being created. If unspecified then the * the module is being retrieved for further configuration. - * @param {Function} configFn Option configuration function for the module. Same as + * @param {Function} configFn Optional configuration function for the module. Same as * {@link angular.Module#config Module#config()}. * @returns {module} new module with the {@link angular.Module} api. */ return function module(name, requires, configFn) { if (requires && modules.hasOwnProperty(name)) { @@ -170,10 +170,37 @@ */ constant: invokeLater('$provide', 'constant', 'unshift'), /** * @ngdoc method + * @name angular.Module#animation + * @methodOf angular.Module + * @param {string} name animation name + * @param {Function} animationFactory Factory function for creating new instance of an animation. + * @description + * + * Defines an animation hook that can be later used with {@link ng.directive:ngAnimate ngAnimate} + * alongside {@link ng.directive:ngAnimate#Description common ng directives} as well as custom directives. + * <pre> + * module.animation('animation-name', function($inject1, $inject2) { + * return { + * //this gets called in preparation to setup an animation + * setup : function(element) { ... }, + * + * //this gets called once the animation is run + * start : function(element, done, memo) { ... } + * } + * }) + * </pre> + * + * See {@link ng.$animationProvider#register $animationProvider.register()} and + * {@link ng.directive:ngAnimate ngAnimate} for more information. + */ + animation: invokeLater('$animationProvider', 'register'), + + /** + * @ngdoc method * @name angular.Module#filter * @methodOf angular.Module * @param {string} name Filter name. * @param {Function} filterFactory Factory function for creating new instance of filter. * @description @@ -220,12 +247,12 @@ * @name angular.Module#run * @methodOf angular.Module * @param {Function} initializationFn Execute this function after injector creation. * Useful for application initialization. * @description - * Use this method to register work which needs to be performed when the injector with - * with the current module is finished loading. + * Use this method to register work which should be performed when the injector is done + * loading all modules. */ run: function(block) { runBlocks.push(block); return this; } @@ -252,9 +279,10 @@ }); }; }); } + )(window); /** * Closure compiler type information *