Skip to content

Commit 575543a

Browse files
committed
Merge pull request siddii#163 from polomarcus/bower
remove angular-mocks dependency from bower.json
2 parents 9afae98 + 4b03f2f commit 575543a

File tree

17 files changed

+424
-327
lines changed

17 files changed

+424
-327
lines changed

bower.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"dependencies": {
1212
"angular": ">= 1.0.7",
1313
"momentjs": "~2.9.0",
14-
"humanize-duration": "~2.4.0",
15-
"angular-mocks": "~1.3.13"
14+
"humanize-duration": "~2.4.0"
1615
},
1716
"devDependencies": {
1817
"bootstrap": "2.3.2",
@@ -25,7 +24,6 @@
2524
"bower_components"
2625
],
2726
"resolutions": {
28-
"angular": "~1.3.13",
2927
"humanize-duration": "~2.4.0"
3028
}
3129
}

bower_components/angular-scenario/.bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "angular-scenario",
3-
"version": "1.3.13",
3+
"version": "1.3.14",
44
"main": "./angular-scenario.js",
55
"ignore": [],
66
"dependencies": {
7-
"angular": "1.3.13"
7+
"angular": "1.3.14"
88
},
99
"homepage": "https://github.com/angular/bower-angular-scenario",
10-
"_release": "1.3.13",
10+
"_release": "1.3.14",
1111
"_resolution": {
1212
"type": "version",
13-
"tag": "v1.3.13",
14-
"commit": "a17344ddd44cbe47bba7c6653ce08a76fc395cc5"
13+
"tag": "v1.3.14",
14+
"commit": "99606da40bcee15be4698104affaa3d2d26588e9"
1515
},
1616
"_source": "git://github.com/angular/bower-angular-scenario.git",
1717
"_target": ">= 1.0.7",

bower_components/angular-scenario/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Documentation is available on the
4040

4141
The MIT License
4242

43-
Copyright (c) 2010-2012 Google, Inc. http://angularjs.org
43+
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
4444

4545
Permission is hereby granted, free of charge, to any person obtaining a copy
4646
of this software and associated documentation files (the "Software"), to deal

bower_components/angular-scenario/angular-scenario.js

Lines changed: 88 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9190,7 +9190,7 @@ return jQuery;
91909190
}));
91919191

91929192
/**
9193-
* @license AngularJS v1.3.13
9193+
* @license AngularJS v1.3.14
91949194
* (c) 2010-2014 Google, Inc. http://angularjs.org
91959195
* License: MIT
91969196
*/
@@ -9246,7 +9246,7 @@ function minErr(module, ErrorConstructor) {
92469246
return match;
92479247
});
92489248

9249-
message = message + '\nhttp://errors.angularjs.org/1.3.13/' +
9249+
message = message + '\nhttp://errors.angularjs.org/1.3.14/' +
92509250
(module ? module + '/' : '') + code;
92519251
for (i = 2; i < arguments.length; i++) {
92529252
message = message + (i == 2 ? '?' : '&') + 'p' + (i - 2) + '=' +
@@ -11313,11 +11313,11 @@ function toDebugString(obj) {
1131311313
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
1131411314
*/
1131511315
var version = {
11316-
full: '1.3.13', // all of these placeholder strings will be replaced by grunt's
11316+
full: '1.3.14', // all of these placeholder strings will be replaced by grunt's
1131711317
major: 1, // package task
1131811318
minor: 3,
11319-
dot: 13,
11320-
codeName: 'meticulous-riffleshuffle'
11319+
dot: 14,
11320+
codeName: 'instantaneous-browserification'
1132111321
};
1132211322

1132311323

@@ -27046,20 +27046,23 @@ var htmlAnchorDirective = valueFn({
2704627046
*
2704727047
* @description
2704827048
*
27049-
* We shouldn't do this, because it will make the button enabled on Chrome/Firefox but not on IE8 and older IEs:
27049+
* This directive sets the `disabled` attribute on the element if the
27050+
* {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.
27051+
*
27052+
* A special directive is necessary because we cannot use interpolation inside the `disabled`
27053+
* attribute. The following example would make the button enabled on Chrome/Firefox
27054+
* but not on older IEs:
27055+
*
2705027056
* ```html
27051-
* <div ng-init="scope = { isDisabled: false }">
27052-
* <button disabled="{{scope.isDisabled}}">Disabled</button>
27057+
* <div ng-init="isDisabled = false">
27058+
* <button disabled="{{isDisabled}}">Disabled</button>
2705327059
* </div>
2705427060
* ```
2705527061
*
27056-
* The HTML specification does not require browsers to preserve the values of boolean attributes
27057-
* such as disabled. (Their presence means true and their absence means false.)
27062+
* This is because the HTML specification does not require browsers to preserve the values of
27063+
* boolean attributes such as `disabled` (Their presence means true and their absence means false.)
2705827064
* If we put an Angular interpolation expression into such an attribute then the
2705927065
* binding information would be lost when the browser removes the attribute.
27060-
* The `ngDisabled` directive solves this problem for the `disabled` attribute.
27061-
* This complementary directive is not removed by the browser and so provides
27062-
* a permanent reliable place to store the binding information.
2706327066
*
2706427067
* @example
2706527068
<example>
@@ -27078,7 +27081,7 @@ var htmlAnchorDirective = valueFn({
2707827081
*
2707927082
* @element INPUT
2708027083
* @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
27081-
* then special attribute "disabled" will be set on the element
27084+
* then the `disabled` attribute will be set on the element
2708227085
*/
2708327086

2708427087

@@ -29080,7 +29083,7 @@ function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
2908029083
return value;
2908129084
});
2908229085

29083-
if (attr.min || attr.ngMin) {
29086+
if (isDefined(attr.min) || attr.ngMin) {
2908429087
var minVal;
2908529088
ctrl.$validators.min = function(value) {
2908629089
return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;
@@ -29096,7 +29099,7 @@ function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
2909629099
});
2909729100
}
2909829101

29099-
if (attr.max || attr.ngMax) {
29102+
if (isDefined(attr.max) || attr.ngMax) {
2910029103
var maxVal;
2910129104
ctrl.$validators.max = function(value) {
2910229105
return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;
@@ -31902,6 +31905,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3190231905
ngModelGet = parsedNgModel,
3190331906
ngModelSet = parsedNgModelAssign,
3190431907
pendingDebounce = null,
31908+
parserValid,
3190531909
ctrl = this;
3190631910

3190731911
this.$$setOptions = function(options) {
@@ -32174,16 +32178,12 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3217432178
// the model although neither viewValue nor the model on the scope changed
3217532179
var modelValue = ctrl.$$rawModelValue;
3217632180

32177-
// Check if the there's a parse error, so we don't unset it accidentially
32178-
var parserName = ctrl.$$parserName || 'parse';
32179-
var parserValid = ctrl.$error[parserName] ? false : undefined;
32180-
3218132181
var prevValid = ctrl.$valid;
3218232182
var prevModelValue = ctrl.$modelValue;
3218332183

3218432184
var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;
3218532185

32186-
ctrl.$$runValidators(parserValid, modelValue, viewValue, function(allValid) {
32186+
ctrl.$$runValidators(modelValue, viewValue, function(allValid) {
3218732187
// If there was no change in validity, don't update the model
3218832188
// This prevents changing an invalid modelValue to undefined
3218932189
if (!allowInvalid && prevValid !== allValid) {
@@ -32201,12 +32201,12 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3220132201

3220232202
};
3220332203

32204-
this.$$runValidators = function(parseValid, modelValue, viewValue, doneCallback) {
32204+
this.$$runValidators = function(modelValue, viewValue, doneCallback) {
3220532205
currentValidationRunId++;
3220632206
var localValidationRunId = currentValidationRunId;
3220732207

3220832208
// check parser error
32209-
if (!processParseErrors(parseValid)) {
32209+
if (!processParseErrors()) {
3221032210
validationDone(false);
3221132211
return;
3221232212
}
@@ -32216,21 +32216,22 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3221632216
}
3221732217
processAsyncValidators();
3221832218

32219-
function processParseErrors(parseValid) {
32219+
function processParseErrors() {
3222032220
var errorKey = ctrl.$$parserName || 'parse';
32221-
if (parseValid === undefined) {
32221+
if (parserValid === undefined) {
3222232222
setValidity(errorKey, null);
3222332223
} else {
32224-
setValidity(errorKey, parseValid);
32225-
if (!parseValid) {
32224+
if (!parserValid) {
3222632225
forEach(ctrl.$validators, function(v, name) {
3222732226
setValidity(name, null);
3222832227
});
3222932228
forEach(ctrl.$asyncValidators, function(v, name) {
3223032229
setValidity(name, null);
3223132230
});
32232-
return false;
3223332231
}
32232+
// Set the parse error last, to prevent unsetting it, should a $validators key == parserName
32233+
setValidity(errorKey, parserValid);
32234+
return parserValid;
3223432235
}
3223532236
return true;
3223632237
}
@@ -32325,7 +32326,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3232532326
this.$$parseAndValidate = function() {
3232632327
var viewValue = ctrl.$$lastCommittedViewValue;
3232732328
var modelValue = viewValue;
32328-
var parserValid = isUndefined(modelValue) ? undefined : true;
32329+
parserValid = isUndefined(modelValue) ? undefined : true;
3232932330

3233032331
if (parserValid) {
3233132332
for (var i = 0; i < ctrl.$parsers.length; i++) {
@@ -32351,7 +32352,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3235132352

3235232353
// Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.
3235332354
// This can happen if e.g. $setViewValue is called from inside a parser
32354-
ctrl.$$runValidators(parserValid, modelValue, ctrl.$$lastCommittedViewValue, function(allValid) {
32355+
ctrl.$$runValidators(modelValue, ctrl.$$lastCommittedViewValue, function(allValid) {
3235532356
if (!allowInvalid) {
3235632357
// Note: Don't check ctrl.$valid here, as we could have
3235732358
// external validators (e.g. calculated on the server),
@@ -32472,6 +32473,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3247232473
// TODO(perf): why not move this to the action fn?
3247332474
if (modelValue !== ctrl.$modelValue) {
3247432475
ctrl.$modelValue = ctrl.$$rawModelValue = modelValue;
32476+
parserValid = undefined;
3247532477

3247632478
var formatters = ctrl.$formatters,
3247732479
idx = formatters.length;
@@ -32484,7 +32486,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3248432486
ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;
3248532487
ctrl.$render();
3248632488

32487-
ctrl.$$runValidators(undefined, modelValue, viewValue, noop);
32489+
ctrl.$$runValidators(modelValue, viewValue, noop);
3248832490
}
3248932491
}
3249032492

@@ -33300,6 +33302,55 @@ var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp
3330033302
* when keys are deleted and reinstated.
3330133303
*
3330233304
*
33305+
* # Tracking and Duplicates
33306+
*
33307+
* When the contents of the collection change, `ngRepeat` makes the corresponding changes to the DOM:
33308+
*
33309+
* * When an item is added, a new instance of the template is added to the DOM.
33310+
* * When an item is removed, its template instance is removed from the DOM.
33311+
* * When items are reordered, their respective templates are reordered in the DOM.
33312+
*
33313+
* By default, `ngRepeat` does not allow duplicate items in arrays. This is because when
33314+
* there are duplicates, it is not possible to maintain a one-to-one mapping between collection
33315+
* items and DOM elements.
33316+
*
33317+
* If you do need to repeat duplicate items, you can substitute the default tracking behavior
33318+
* with your own using the `track by` expression.
33319+
*
33320+
* For example, you may track items by the index of each item in the collection, using the
33321+
* special scope property `$index`:
33322+
* ```html
33323+
* <div ng-repeat="n in [42, 42, 43, 43] track by $index">
33324+
* {{n}}
33325+
* </div>
33326+
* ```
33327+
*
33328+
* You may use arbitrary expressions in `track by`, including references to custom functions
33329+
* on the scope:
33330+
* ```html
33331+
* <div ng-repeat="n in [42, 42, 43, 43] track by myTrackingFunction(n)">
33332+
* {{n}}
33333+
* </div>
33334+
* ```
33335+
*
33336+
* If you are working with objects that have an identifier property, you can track
33337+
* by the identifier instead of the whole object. Should you reload your data later, `ngRepeat`
33338+
* will not have to rebuild the DOM elements for items it has already rendered, even if the
33339+
* JavaScript objects in the collection have been substituted for new ones:
33340+
* ```html
33341+
* <div ng-repeat="model in collection track by model.id">
33342+
* {{model.name}}
33343+
* </div>
33344+
* ```
33345+
*
33346+
* When no `track by` expression is provided, it is equivalent to tracking by the built-in
33347+
* `$id` function, which tracks items by their identity:
33348+
* ```html
33349+
* <div ng-repeat="obj in collection track by $id(obj)">
33350+
* {{obj.prop}}
33351+
* </div>
33352+
* ```
33353+
*
3330333354
* # Special repeat start and end points
3330433355
* To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending
3330533356
* the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.
@@ -33367,12 +33418,12 @@ var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp
3336733418
*
3336833419
* For example: `(name, age) in {'adam':10, 'amalie':12}`.
3336933420
*
33370-
* * `variable in expression track by tracking_expression` – You can also provide an optional tracking function
33371-
* which can be used to associate the objects in the collection with the DOM elements. If no tracking function
33372-
* is specified the ng-repeat associates elements by identity in the collection. It is an error to have
33373-
* more than one tracking function to resolve to the same key. (This would mean that two distinct objects are
33374-
* mapped to the same DOM element, which is not possible.) Filters should be applied to the expression,
33375-
* before specifying a tracking expression.
33421+
* * `variable in expression track by tracking_expression` – You can also provide an optional tracking expression
33422+
* which can be used to associate the objects in the collection with the DOM elements. If no tracking expression
33423+
* is specified, ng-repeat associates elements by identity. It is an error to have
33424+
* more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are
33425+
* mapped to the same DOM element, which is not possible.) If filters are used in the expression, they should be
33426+
* applied before the tracking expression.
3337633427
*
3337733428
* For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements
3337833429
* will be associated by item identity in the array.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "angular-scenario",
3-
"version": "1.3.13",
3+
"version": "1.3.14",
44
"main": "./angular-scenario.js",
55
"ignore": [],
66
"dependencies": {
7-
"angular": "1.3.13"
7+
"angular": "1.3.14"
88
}
99
}

bower_components/angular-scenario/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-scenario",
3-
"version": "1.3.13",
3+
"version": "1.3.14",
44
"description": "AngularJS module for end-to-end testing",
55
"main": "angular-scenario.js",
66
"scripts": {

bower_components/angular/.bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "angular",
3-
"version": "1.3.13",
3+
"version": "1.3.14",
44
"main": "./angular.js",
55
"ignore": [],
66
"dependencies": {},
77
"homepage": "https://github.com/angular/bower-angular",
8-
"_release": "1.3.13",
8+
"_release": "1.3.14",
99
"_resolution": {
1010
"type": "version",
11-
"tag": "v1.3.13",
12-
"commit": "ad68cfecb69ff7cacb27813377ce9d95e072529b"
11+
"tag": "v1.3.14",
12+
"commit": "bdd91e1331b48ae89adfb8444998e290b774cc6d"
1313
},
1414
"_source": "git://github.com/angular/bower-angular.git",
1515
"_target": ">= 1.0.7",

bower_components/angular/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ Then add a `<script>` to your `index.html`:
2020
<script src="/node_modules/angular/angular.js"></script>
2121
```
2222

23-
Note that this package is not in CommonJS format, so doing `require('angular')` will return `undefined`.
24-
If you're using [Browserify](https://github.com/substack/node-browserify), you can use
25-
[exposify](https://github.com/thlorenz/exposify) to have `require('angular')` return the `angular`
26-
global.
23+
Or `require('angular')` from your code.
2724

2825
### bower
2926

@@ -46,7 +43,7 @@ Documentation is available on the
4643

4744
The MIT License
4845

49-
Copyright (c) 2010-2012 Google, Inc. http://angularjs.org
46+
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
5047

5148
Permission is hereby granted, free of charge, to any person obtaining a copy
5249
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)