Commit Graph

7732 Commits

Author SHA1 Message Date
Michael de Wit b9d76bfa55 docs(guide/component): several unit-test fixes and remove obsolete testcase
Fixes #14426

Closes #14443
2016-04-26 20:23:12 +03:00
Perry Hooker 2310e1090a fix($compile): properly handle setting srcset to undefined
Previously, calling `Attributes#$set('srcset', value)` on an `<img>` element would throw if `value`
were undefined, as it assumed `value` is always a string.
This commit fixes the issue, by skipping the unnecessary string manipulation when `value` is not
defined.

Closes #14470

Closes #14493
2016-04-26 09:06:26 +03:00
andrea 92752e5b42 docs(guide/index): fixed formatting with subtitles
The "Books" and "Videos" subtitles had no space between text and the '#' so it didn't render as a
subtitle.

Closes #14514
2016-04-26 08:32:13 +03:00
Tim van Dalen 4ad95607eb docs($anchorScroll): fix link to HTML5 spec
Closes #14364
2016-04-26 00:22:24 +03:00
Raphael Jamet 8576baf751 fix($templateRequest): trust empty templates in $templateCache as well
Implicitly trust empty templates added to `$templateCache` as is the case for all other templates.

Fixes #14479

Closes #14496
2016-04-25 20:19:53 +03:00
Sam 8d1ee0c3b9 docs(guide/Unit Testing): covert 'focussed' to AE spelling
We prefer American English spelling.
(#14503)
2016-04-24 07:46:41 -07:00
Georgios Kalpakas c95a3d8088 docs($interpolate): add known issue about end-symbol in expression
This has been discussed in #8642.

Closes #14494
2016-04-22 14:40:50 +03:00
Georgios Kalpakas 25a7aefc12 fix(filters): always call splice() with 2 arguments or more
When calling `.splice()` without a 2nd argument (`deleteCount`), most browsers will splice to the
end of the array. As it turns out, this is the behavior specified in [ES2015][es6]. In [ES5][es5],
the spec seems to imply that nothing should happen.

To avoid inconsistent behavior among browsers implementing different versions of the EcmaScript
standart or when ES5 shims are included (e.g. https://github.com/es-shims/es5-shim/), this commit
ensures that all calls to `.splice()` provide at least two arguments.

[es5]: http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.12
[es6]: http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.splice

Fixes #14467

Closes #14489
2016-04-22 12:39:41 +03:00
Abhishek Garg 0727bfc141 docs($http): add better explanation for error status codes
Add explanation for error status codes in `$http` and mention negative codes normalization.
This alleviates confusion about which status codes will trigger the error callback and what values
to expect in such callbacks.

Fixes #11945

Closes #14459
2016-04-22 12:19:35 +03:00
andreyjkee 253cb8d4e9 fix(ngMocks): pass eventHandlers to $httpBackend if passThrough is active
Closes #14471
2016-04-21 23:08:39 +02:00
Martin Staffa d2ec9d7184 docs(guide/Expressions): mention absence of bitwise operators
Closes #14485
2016-04-21 16:26:47 +02:00
Abhishek Garg 1676b8477f docs(changelog): make labels and list style consistent
Remove 'Breaking Changes' label where there are no breaking changes.

Only for '1.4.0-rc.2', breaking changes have different styling (bold without bulleted list). Change to be consistent with others

(#14482)
2016-04-21 07:23:30 -07:00
Amy c414ece5cf docs($sce): add missing article
...teeny letter missing.  Just a grammar change.
(#14480)
2016-04-21 07:18:15 -07:00
jody tate 186c8cb9e4 docs(ngAria): fix markdown heading syntax
(#14477)
2016-04-21 07:16:45 -07:00
Martin Staffa b5983e4b21 docs(ngMock): add custom installation instructions
ngMock should be used in a test runner context, not directly in the application

Closes #14248
2016-04-21 15:56:16 +02:00
Martin Staffa f30b0ed849 docs: reorganize module overview page template 2016-04-21 15:56:16 +02:00
Michał Gołębiowski d985944652 chore(jQuery): bump jQuery version from 2.2.1 to 2.2.3 2016-04-20 13:36:39 +02:00
Ken Powers e14b486e07 docs(guide/Components): snake -> kebab
The example given is not in snake_case, it is in kebab-case.

Closes #14464
2016-04-19 11:31:19 -07:00
Lucas Mirelmann eb9f7d484d chore(i18n): Update locales to version 29
Closes: #14450
2016-04-18 22:15:40 +02:00
Lucas Mirelmann b5a0c8d2ea feat($parse): Add support for ES6 object initializers
- Add support for computed property names
- Add support for short notation in properties definitions

Eg. The expressions `{x}` and `{[x + 'foo']: 1}` are now valid.
2016-04-18 22:01:30 +02:00
Lucas Mirelmann c1eaf3480b fix($parse): Handle sign of -undefined consistently
When csp is disabled, evaluating `-undefined` is `-0` and when csp is enabled
the evaluation is `0`. In most cases this is not an issue as `0 === -0`, but
there is an edge case as `1/0 === Infinity` and `1/-0 === -Infinity`

Close: #14451
2016-04-18 16:29:10 +02:00
Martin Staffa 997f482b38 docs(ngMockE2E): add $httpBackend mock example 2016-04-18 14:08:10 +02:00
Peter Bacon Darwin 0cb94ed3a3 chore(CHANGELOG): fix version number for 1.5.5 2016-04-18 12:31:31 +01:00
Peter Bacon Darwin c3de164b83 chore(CHANGELOG): add 1.5.5 release notes 2016-04-18 12:29:22 +01:00
Martin Staffa 165a862a0b chore(gitignore): exclude .log and .stackdump files 2016-04-17 13:34:55 -07:00
Jeremy 7148627eae docs(guide/Component Router): fix a typo in npm install instructions
Related #14452
2016-04-17 13:33:35 -07:00
Peter Bacon Darwin 0d7f1ed428 docs(CHANGELOG): remove changes from 1.5.4
1.5.4 was only partially released.
These changes will be included in the 1.5.5 release
2016-04-16 09:29:03 +01:00
z.ky 5656eb3c0b docs($http): fix typo
Fix a typo in the $http API Reference
2016-04-15 10:23:03 -07:00
Georgios Kalpakas ddac3b3348 fix($http): pass event object to eventHandlers/uploadEventHandlers
Fixes #14436
2016-04-15 14:10:25 +01:00
Peter Bacon Darwin 0d55298b56 revert: refactor($compile): move setting of controller data to single location
Reverted from commit 83a6b15020 since it caused
the Angular Material tabs directives to break.
2016-04-15 14:07:28 +01:00
Jannick Fahlbusch 56861c0ae9 chore(docsApp): open plnkr.co with HTTPS
Plnkr should be opened via HTTPS instead of HTTP to supress warnings about an insecure connection

Closes #14445
2016-04-15 14:37:50 +02:00
cloverharvest b4c7df3713 docs($http): fix a typo (his --> this)
Closes #14430
2016-04-15 01:24:14 +03:00
Adam Demuri 1f05b96022 docs(component): document 'require' in angular.component
Closes #14429
2016-04-15 01:09:31 +03:00
Peter Bacon Darwin c4fb0eca92 docs(CHANGELOG): add release notes for 1.5.4 2016-04-14 09:16:39 +01:00
Pete Bacon Darwin 2840aec8f1 feat($componentController): provide isolated scope if none is passed (#14425)
Closes #14425
2016-04-13 18:11:20 +01:00
Martin Staffa 97b3e003bc perf(ngOptions): use documentFragment to populate select
This changes the way option elements are generated when the ngOption collection changes.
Previously, we would re-use option elements when possible (updating their text and
label). Now, we first remove all currently displayed options and the create new options for the
collection. The new options are first appended to a documentFragment, which is in the end appended
to the selectElement.

Using documentFragment improves render performance in IE with large option collections
(> 100 elements) considerably.

Creating new options from scratch fixes issues in IE where the select would become unresponsive
to user input.

Fixes #13607
Fixes #13239
Fixes #12076
2016-04-13 18:40:03 +02:00
Georgios Kalpakas f785c0c98d docs(ngView): add known issue about asynchronously loaded ngView
Closes #14424
2016-04-13 18:25:46 +03:00
Georgios Kalpakas 75bf80700e revert: "fix(ngRoute): allow ngView to be included in an asynchronously loaded template"
This reverts commit 5e37b2a7fd.
Eagerly loading `$route`, could break tests, because it might request the root or default route
template (something `$httpBackend` would know nothing about).

It will be re-applied for `v1.6.x`, with a breaking change notice and possibly a way to disable
the feature is tests.

Fixes #14337
2016-04-13 18:23:59 +03:00
Jason Bedard fe1127a322 perf($compile): use createMap() for directive bindings to allow fast forEach
Closes #12529
2016-04-13 11:49:40 +03:00
Peter Bacon Darwin 709dc1cf0e docs(images): add svg and visio versions of the graffle image 2016-04-12 14:19:55 +01:00
Peter Bacon Darwin 3207b51e83 docs(guide): add svg and visio versions of the graffle images 2016-04-12 14:16:43 +01:00
Peter Bacon Darwin e818d4a959 docs(tutorial): add svg and visio versions of the graffle images 2016-04-12 14:13:33 +01:00
Georgii Dolzhykov 1c62d632a5 docs(Module): fix parameter names for .decorator()
Closes #14413
2016-04-12 14:50:46 +03:00
aortyl 761c70c7b9 docs(guide/scope): add comma for readability
Closes #14411
2016-04-11 22:21:29 +03:00
Jason Bedard 83a6b15020 refactor($compile): move setting of controller data to single location
Closes #13421
2016-04-11 18:54:20 +01:00
Georgios Kalpakas 9264cef03f fix($compile): do not use noop() as controller for multiple components
Currently, custom annotations are copied from the CDO onto the controller constructor.
Using `noop()` when no controller has been specified, pollutes it with custom annotations and
makes one component's annotations available to all other components that have `noop()` as their
controller.

Fixes #14391
Closes #14402
2016-04-11 18:42:48 +01:00
a510 a0b5e1a858 fix($injector): ensure functions with overridden toString() are annotated properly
Closes #14361
2016-04-11 12:58:50 +03:00
David Rodenas Pico 74eb4684dc fix(ngClass): fix watching of an array expression containing an object
Closes #14405
2016-04-11 12:38:45 +03:00
Georgios Kalpakas d088fbeae3 refactor($compile): remove unnecessary call to isDefined()
(As discussed in https://github.com/angular/angular.js/pull/14406/files#r59131398.)
2016-04-11 12:31:45 +03:00
Gene McCulley ee8d8e12fb docs(numberFilter): fix the description of the returned value
Closes #14408
2016-04-11 12:26:56 +03:00