Skip to content

Commit bf2866c

Browse files
committed
add 1.0.8 bubble-burst build artifacts
1 parent 64555f4 commit bf2866c

File tree

579 files changed

+112430
-0
lines changed

Some content is hidden

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

579 files changed

+112430
-0
lines changed

1.0.8/angular-1.0.8.zip

3.84 MB
Binary file not shown.

1.0.8/angular-bootstrap-prettify.js

+1,845
Large diffs are not rendered by default.

1.0.8/angular-bootstrap-prettify.min.js

+41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.0.8/angular-bootstrap.js

+175
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
/**
2+
* @license AngularJS v1.0.8
3+
* (c) 2010-2012 Google, Inc. http://angularjs.org
4+
* License: MIT
5+
*/
6+
(function(window, angular, undefined) {
7+
'use strict';
8+
9+
var directive = {};
10+
11+
directive.dropdownToggle =
12+
['$document', '$location', '$window',
13+
function ($document, $location, $window) {
14+
var openElement = null, close;
15+
return {
16+
restrict: 'C',
17+
link: function(scope, element, attrs) {
18+
scope.$watch(function dropdownTogglePathWatch(){return $location.path();}, function dropdownTogglePathWatchAction() {
19+
close && close();
20+
});
21+
22+
element.parent().bind('click', function(event) {
23+
close && close();
24+
});
25+
26+
element.bind('click', function(event) {
27+
event.preventDefault();
28+
event.stopPropagation();
29+
30+
var iWasOpen = false;
31+
32+
if (openElement) {
33+
iWasOpen = openElement === element;
34+
close();
35+
}
36+
37+
if (!iWasOpen){
38+
element.parent().addClass('open');
39+
openElement = element;
40+
41+
close = function (event) {
42+
event && event.preventDefault();
43+
event && event.stopPropagation();
44+
$document.unbind('click', close);
45+
element.parent().removeClass('open');
46+
close = null;
47+
openElement = null;
48+
}
49+
50+
$document.bind('click', close);
51+
}
52+
});
53+
}
54+
};
55+
}];
56+
57+
58+
directive.tabbable = function() {
59+
return {
60+
restrict: 'C',
61+
compile: function(element) {
62+
var navTabs = angular.element('<ul class="nav nav-tabs"></ul>'),
63+
tabContent = angular.element('<div class="tab-content"></div>');
64+
65+
tabContent.append(element.contents());
66+
element.append(navTabs).append(tabContent);
67+
},
68+
controller: ['$scope', '$element', function($scope, $element) {
69+
var navTabs = $element.contents().eq(0),
70+
ngModel = $element.controller('ngModel') || {},
71+
tabs = [],
72+
selectedTab;
73+
74+
ngModel.$render = function() {
75+
var $viewValue = this.$viewValue;
76+
77+
if (selectedTab ? (selectedTab.value != $viewValue) : $viewValue) {
78+
if(selectedTab) {
79+
selectedTab.paneElement.removeClass('active');
80+
selectedTab.tabElement.removeClass('active');
81+
selectedTab = null;
82+
}
83+
if($viewValue) {
84+
for(var i = 0, ii = tabs.length; i < ii; i++) {
85+
if ($viewValue == tabs[i].value) {
86+
selectedTab = tabs[i];
87+
break;
88+
}
89+
}
90+
if (selectedTab) {
91+
selectedTab.paneElement.addClass('active');
92+
selectedTab.tabElement.addClass('active');
93+
}
94+
}
95+
96+
}
97+
};
98+
99+
this.addPane = function(element, attr) {
100+
var li = angular.element('<li><a href></a></li>'),
101+
a = li.find('a'),
102+
tab = {
103+
paneElement: element,
104+
paneAttrs: attr,
105+
tabElement: li
106+
};
107+
108+
tabs.push(tab);
109+
110+
attr.$observe('value', update)();
111+
attr.$observe('title', function(){ update(); a.text(tab.title); })();
112+
113+
function update() {
114+
tab.title = attr.title;
115+
tab.value = attr.value || attr.title;
116+
if (!ngModel.$setViewValue && (!ngModel.$viewValue || tab == selectedTab)) {
117+
// we are not part of angular
118+
ngModel.$viewValue = tab.value;
119+
}
120+
ngModel.$render();
121+
}
122+
123+
navTabs.append(li);
124+
li.bind('click', function(event) {
125+
event.preventDefault();
126+
event.stopPropagation();
127+
if (ngModel.$setViewValue) {
128+
$scope.$apply(function() {
129+
ngModel.$setViewValue(tab.value);
130+
ngModel.$render();
131+
});
132+
} else {
133+
// we are not part of angular
134+
ngModel.$viewValue = tab.value;
135+
ngModel.$render();
136+
}
137+
});
138+
139+
return function() {
140+
tab.tabElement.remove();
141+
for(var i = 0, ii = tabs.length; i < ii; i++ ) {
142+
if (tab == tabs[i]) {
143+
tabs.splice(i, 1);
144+
}
145+
}
146+
};
147+
}
148+
}]
149+
};
150+
};
151+
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+
};
160+
161+
directive.tabPane = function() {
162+
return {
163+
require: '^tabbable',
164+
restrict: 'C',
165+
link: function(scope, element, attrs, tabsCtrl) {
166+
element.bind('$remove', tabsCtrl.addPane(element, attrs));
167+
}
168+
};
169+
};
170+
171+
172+
angular.module('bootstrap', []).directive(directive);
173+
174+
175+
})(window, window.angular);

1.0.8/angular-bootstrap.min.js

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.0.8/angular-cookies.js

+196
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
/**
2+
* @license AngularJS v1.0.8
3+
* (c) 2010-2012 Google, Inc. http://angularjs.org
4+
* License: MIT
5+
*/
6+
(function(window, angular, undefined) {
7+
'use strict';
8+
9+
/**
10+
* @ngdoc overview
11+
* @name ngCookies
12+
*/
13+
14+
15+
angular.module('ngCookies', ['ng']).
16+
/**
17+
* @ngdoc object
18+
* @name ngCookies.$cookies
19+
* @requires $browser
20+
*
21+
* @description
22+
* Provides read/write access to browser's cookies.
23+
*
24+
* Only a simple Object is exposed and by adding or removing properties to/from
25+
* this object, new cookies are created/deleted at the end of current $eval.
26+
*
27+
* # Installation
28+
* To use $cookies make sure you have included the `angular-cookies.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', ['ngCookies']);
35+
*
36+
* and you are ready to get started!
37+
*
38+
* @example
39+
<doc:example>
40+
<doc:source>
41+
<script>
42+
function ExampleController($cookies) {
43+
// Retrieving a cookie
44+
var favoriteCookie = $cookies.myFavorite;
45+
// Setting a cookie
46+
$cookies.myFavorite = 'oatmeal';
47+
}
48+
</script>
49+
</doc:source>
50+
</doc:example>
51+
*/
52+
factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) {
53+
var cookies = {},
54+
lastCookies = {},
55+
lastBrowserCookies,
56+
runEval = false,
57+
copy = angular.copy,
58+
isUndefined = angular.isUndefined;
59+
60+
//creates a poller fn that copies all cookies from the $browser to service & inits the service
61+
$browser.addPollFn(function() {
62+
var currentCookies = $browser.cookies();
63+
if (lastBrowserCookies != currentCookies) { //relies on browser.cookies() impl
64+
lastBrowserCookies = currentCookies;
65+
copy(currentCookies, lastCookies);
66+
copy(currentCookies, cookies);
67+
if (runEval) $rootScope.$apply();
68+
}
69+
})();
70+
71+
runEval = true;
72+
73+
//at the end of each eval, push cookies
74+
//TODO: this should happen before the "delayed" watches fire, because if some cookies are not
75+
// strings or browser refuses to store some cookies, we update the model in the push fn.
76+
$rootScope.$watch(push);
77+
78+
return cookies;
79+
80+
81+
/**
82+
* Pushes all the cookies from the service to the browser and verifies if all cookies were stored.
83+
*/
84+
function push() {
85+
var name,
86+
value,
87+
browserCookies,
88+
updated;
89+
90+
//delete any cookies deleted in $cookies
91+
for (name in lastCookies) {
92+
if (isUndefined(cookies[name])) {
93+
$browser.cookies(name, undefined);
94+
}
95+
}
96+
97+
//update all cookies updated in $cookies
98+
for(name in cookies) {
99+
value = cookies[name];
100+
if (!angular.isString(value)) {
101+
if (angular.isDefined(lastCookies[name])) {
102+
cookies[name] = lastCookies[name];
103+
} else {
104+
delete cookies[name];
105+
}
106+
} else if (value !== lastCookies[name]) {
107+
$browser.cookies(name, value);
108+
updated = true;
109+
}
110+
}
111+
112+
//verify what was actually stored
113+
if (updated){
114+
updated = false;
115+
browserCookies = $browser.cookies();
116+
117+
for (name in cookies) {
118+
if (cookies[name] !== browserCookies[name]) {
119+
//delete or reset all cookies that the browser dropped from $cookies
120+
if (isUndefined(browserCookies[name])) {
121+
delete cookies[name];
122+
} else {
123+
cookies[name] = browserCookies[name];
124+
}
125+
updated = true;
126+
}
127+
}
128+
}
129+
}
130+
}]).
131+
132+
133+
/**
134+
* @ngdoc object
135+
* @name ngCookies.$cookieStore
136+
* @requires $cookies
137+
*
138+
* @description
139+
* Provides a key-value (string-object) storage, that is backed by session cookies.
140+
* Objects put or retrieved from this storage are automatically serialized or
141+
* deserialized by angular's toJson/fromJson.
142+
* @example
143+
*/
144+
factory('$cookieStore', ['$cookies', function($cookies) {
145+
146+
return {
147+
/**
148+
* @ngdoc method
149+
* @name ngCookies.$cookieStore#get
150+
* @methodOf ngCookies.$cookieStore
151+
*
152+
* @description
153+
* Returns the value of given cookie key
154+
*
155+
* @param {string} key Id to use for lookup.
156+
* @returns {Object} Deserialized cookie value.
157+
*/
158+
get: function(key) {
159+
var value = $cookies[key];
160+
return value ? angular.fromJson(value) : value;
161+
},
162+
163+
/**
164+
* @ngdoc method
165+
* @name ngCookies.$cookieStore#put
166+
* @methodOf ngCookies.$cookieStore
167+
*
168+
* @description
169+
* Sets a value for given cookie key
170+
*
171+
* @param {string} key Id for the `value`.
172+
* @param {Object} value Value to be stored.
173+
*/
174+
put: function(key, value) {
175+
$cookies[key] = angular.toJson(value);
176+
},
177+
178+
/**
179+
* @ngdoc method
180+
* @name ngCookies.$cookieStore#remove
181+
* @methodOf ngCookies.$cookieStore
182+
*
183+
* @description
184+
* Remove given cookie
185+
*
186+
* @param {string} key Id of the key-value pair to delete.
187+
*/
188+
remove: function(key) {
189+
delete $cookies[key];
190+
}
191+
};
192+
193+
}]);
194+
195+
196+
})(window, window.angular);

1.0.8/angular-cookies.min.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
AngularJS v1.0.8
3+
(c) 2010-2012 Google, Inc. http://angularjs.org
4+
License: MIT
5+
*/
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);

0 commit comments

Comments
 (0)