Skip to content

Commit

Permalink
Built 0.2.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Lin committed Aug 8, 2014
1 parent 0e93cea commit e40e35b
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 32 deletions.
45 changes: 21 additions & 24 deletions dist/angularAMD.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
angularAMD v0.2.0
angularAMD v0.2.1
(c) 2013-2014 Marcos Lin https://github.com/marcoslin/
License: MIT
*/
Expand All @@ -26,10 +26,7 @@ define(function () {
// Used in setAlternateAngular() and .processQueue
alternate_modules = {},
alternate_modules_tracker = {},
alternate_queue = [],

// Used by angularAMD provider methods and .bootstrap
deferred_providers = [];
alternate_queue = [];

// Private method to check if angularAMD has been initialized
function checkBootstrapped() {
Expand Down Expand Up @@ -101,7 +98,7 @@ define(function () {
}

// Constructor
function angularAMD() {}
function AngularAMD() {}


/**
Expand All @@ -116,7 +113,7 @@ define(function () {
* except for 'controllerUrl' attribute.
*
*/
angularAMD.prototype.route = function (config) {
AngularAMD.prototype.route = function (config) {
// Initialization not necessary to call this method.
var load_controller;

Expand Down Expand Up @@ -166,7 +163,7 @@ define(function () {
/**
* Expose name of the app that has been bootstrapped
*/
angularAMD.prototype.appname = function () {
AngularAMD.prototype.appname = function () {
checkBootstrapped();
return app_name;
};
Expand All @@ -186,7 +183,7 @@ define(function () {
* blocks, thus replacing the need for "provider === '$injector' && method === 'invoke'"
* logic.
*/
angularAMD.prototype.processQueue = function () {
AngularAMD.prototype.processQueue = function () {
checkBootstrapped();

if (typeof alt_angular === 'undefined') {
Expand Down Expand Up @@ -266,7 +263,7 @@ define(function () {
/**
* Return cached app provider
*/
angularAMD.prototype.getCachedProvider = function (provider_name) {
AngularAMD.prototype.getCachedProvider = function (provider_name) {
checkBootstrapped();
// Hack used for unit testing that orig_angular has been captured
var cachedProvider;
Expand Down Expand Up @@ -295,7 +292,7 @@ define(function () {
* Create inject function that uses cached $injector.
* Designed primarly to be used during unit testing.
*/
angularAMD.prototype.inject = function () {
AngularAMD.prototype.inject = function () {
checkBootstrapped();
return run_injector.invoke.apply(null, arguments);
};
Expand All @@ -305,15 +302,15 @@ define(function () {
* Create config function that uses cached config_injector.
* Designed to simulate app.config.
*/
angularAMD.prototype.config = function () {
AngularAMD.prototype.config = function () {
checkBootstrapped();
return config_injector.invoke.apply(null, arguments);
};

/**
* Reset angularAMD for resuse
*/
angularAMD.prototype.reset = function () {
AngularAMD.prototype.reset = function () {
if (typeof orig_angular === 'undefined') {
return;
}
Expand Down Expand Up @@ -348,7 +345,7 @@ define(function () {
*
* enable_ngload:
*/
angularAMD.prototype.bootstrap = function (app, enable_ngload, elem) {
AngularAMD.prototype.bootstrap = function (app, enable_ngload, elem) {
// Prevent bootstrap from being called multiple times
if (bootstrapped) {
throw Error('bootstrap can only be called once.');
Expand Down Expand Up @@ -481,25 +478,25 @@ define(function () {
}

// .provider
angularAMD.prototype.provider = executeProvider('provider');
AngularAMD.prototype.provider = executeProvider('provider');
// .controller
angularAMD.prototype.controller = executeProvider('controller');
AngularAMD.prototype.controller = executeProvider('controller');
// .directive
angularAMD.prototype.directive = executeProvider('directive');
AngularAMD.prototype.directive = executeProvider('directive');
// .filter
angularAMD.prototype.filter = executeProvider('filter');
AngularAMD.prototype.filter = executeProvider('filter');
// .factory
angularAMD.prototype.factory = executeProvider('factory');
AngularAMD.prototype.factory = executeProvider('factory');
// .service
angularAMD.prototype.service = executeProvider('service');
AngularAMD.prototype.service = executeProvider('service');
// .constant
angularAMD.prototype.constant = executeProvider('constant');
AngularAMD.prototype.constant = executeProvider('constant');
// .value
angularAMD.prototype.value = executeProvider('value');
AngularAMD.prototype.value = executeProvider('value');
// .animation
angularAMD.prototype.animation = executeProvider('animation');
AngularAMD.prototype.animation = executeProvider('animation');

// Create a new instance and return
return new angularAMD();
return new AngularAMD();

});
2 changes: 1 addition & 1 deletion dist/angularAMD.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/angularAMD.min.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions dist/ngload.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
angularAMD v0.2.0
angularAMD v0.2.1
(c) 2013-2014 Marcos Lin https://github.com/marcoslin/
License: MIT
*/
'use strict';
define({
load: function (name, req, onload, config) {
load: function (name, req, onload) {
'use strict';
//console.log("ngamd loaded: ", req.toUrl(name));
req(['angularAMD', name], function (angularAMD, value) {
//console.log("Processing queues.");
Expand All @@ -14,3 +14,5 @@ define({
});
}
});


4 changes: 2 additions & 2 deletions dist/ngload.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ngload.min.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e40e35b

Please sign in to comment.