Igor Minar
acb6b75fe9
chore(dump): remove dead code
...
This code is not being used any more and the test is now failing
due to Karma changes. Karma used to expose window.dump but that
changed recently and that's why our build is now failing.
I'm removing the code and test, but we still need to figure out
how to route window.dump through angular.mock.dump, but that will
have to be a separate commit.
2013-07-22 14:01:38 -07:00
Igor Minar
683fd713c4
fix($compile): always instantiate controllers in parent->child order
...
Previously it was possible to get into a situation where child controller
was being instantiated before parent which resulted in an error.
Closes #2738
2013-07-22 11:32:50 -07:00
Jérémy
3591ae0103
docs(input): fix example
...
The input [number] error spans did not show on the example, as they were
relying on an non-existing property (myForm.list.$error) vs the working
property (myForm.input.$error)
2013-07-21 21:24:53 +02:00
Vineet Kumar
5fedfd79a5
docs(ngController): remove obsolete mention of scope as this in controller
...
Controllers are now (since angular 1.0) instantiated as regular constructorsand the scope
is injectable as $scope rather than being referenced as `this` in controller methods.
2013-07-21 20:30:40 +02:00
David Sanders
bdde40e755
docs($window): improve style and clarify wording
2013-07-21 20:24:49 +02:00
Pete Bacon Darwin
88c4963328
docs(jqLite): document "$destroy" event
2013-07-18 19:53:13 +01:00
Spencer
add43e91dc
docs($templateCache): add examples of usage
2013-07-17 16:41:09 +01:00
Bruno Coelho
b3c7a6d566
docs(dateFilter): fix typos
...
Fix closing parenthesis, quotes around string literal and remove
trailing whitespace.
Closes #3250
2013-07-17 11:28:01 +01:00
David
1122b3c14d
style(ngMock): add missing whitespace
2013-07-14 16:06:38 +02:00
Ben Ripkens
a357649da5
fix(angular.equals): add support for regular expressions
...
Regular expression objects didn't used to be considered to be equal when using
'angular.equals'. Dirty checking therefore failed to recognize a
property modification.
Closes #2685
Conflicts:
test/AngularSpec.js
2013-07-13 22:35:17 -07:00
Greg Thornton
332a3c7984
feat(Angular.js): skip JSON.stringify for undefined
...
Return early in `angular.toJson` if the object to be stringified is `undefined`.
IE8 stringifies `undefined` to `'undefined'` whereas other browsers return
`undefined`. This normalizes behavior and passes currently broken unit tests
in IE8.
2013-07-12 20:49:50 +02:00
Pete Bacon Darwin
fcd761b9d7
fix(sanitize): match URI schemes case-insensitively
...
According to RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1 )
schemes such as http or mailto are case-insensitive. So links such as
http://server/ and HTTP://server/ are valid and equivalent.
Closes #3210
2013-07-12 09:32:23 +01:00
Wesley Cho
b0d5f062e3
fix(ngSubmit): expose $event to ngSubmit callback
2013-07-11 17:27:36 -07:00
Mikk Kirstein
3b898664ee
fix(ngValue): made ngValue to write value attribute to element
2013-07-11 14:59:38 -07:00
Paulo Scardine
a4ec297925
fix(scope): watches can be safely unregistered inside watch handlers
...
Closes #2915
2013-07-11 22:07:15 +01:00
Igor Minar
8c08b4373c
docs(ngList): fix example and add e2e test
2013-07-11 09:23:18 -07:00
Igor Minar
0b38882a91
style(input): remove ws
2013-07-11 09:23:18 -07:00
Mark Striemer
8a63dc3151
docs(ngMock): correct verifyNoOutstandingExpectation example
2013-07-10 20:32:53 +02:00
Marco Vito Moscaritolo
403008816c
docs(angular.identity): fix missing 'angular' in identity function
2013-07-09 14:32:59 +01:00
Pete Bacon Darwin
62d552ffe2
docs(ngModelController): provide a more intuitive example
...
The example directive, using contenteditable was not showing required
even if you cleared the content from it.
Closes #3156
2013-07-08 14:53:15 +01:00
Pete Bacon Darwin
bcaa4217bc
docs(numberFilter): fix explanation of default fraction size
...
The default fraction size for the number filter is actually computed
from the `NUMBER_FORMATS.PATTERNS.maxFrac` value in the current locale.
Closes #3157
2013-07-08 11:23:37 +01:00
basarat
87bb554aec
docs(input): ng-model doesn't work well with isolated scope directive
...
Closes #3123
2013-07-04 00:35:52 +01:00
Anders Hessellund Jensen
3b2c6f09cb
fix($compile): empty normalized href should pass sanitation check
...
Sometimes IE returns an empty string for its normalized href on a tags.
This should pass the sanitation check in $compile.
Closes #2219 , #2593
2013-07-04 00:13:04 +01:00
Joao Sa
63414b9653
fix(jqLite): prepend array in correct order
...
Match jQuery behavior when prepending array into empty element
2013-07-03 20:25:28 +01:00
Itamar Rogel
3cad63fbd8
docs($cacheFactory): show that you can access existing caches
2013-07-01 12:03:10 +01:00
Spencer Applegate
d2be5939dc
docs(Angular.js): explain that toJson strips $... properties
...
In Angular.toJson, any properties with a leading '$' character will be
stripped from the resulting string since angular uses this notation
internally for services. There have been complaints of not knowing
about this functionality until it breaks within their code.
2013-07-01 11:36:17 +01:00
Andrew Peterson
083159ebbe
docs(ngBind): clarify some of the writing
2013-06-27 21:20:56 +01:00
Andrew Peterson
32e440cffc
docs(ngPluralize): improve wording
2013-06-27 21:15:33 +01:00
Pete Bacon Darwin
296074f548
docs(ngMock/$httpBackend): fix testing example
...
Closes #3075
2013-06-27 20:38:15 +01:00
Pete Bacon Darwin
ff57695855
refactor(angular.bootstrap): rename internal function
2013-06-20 15:23:04 +01:00
Pete Bacon Darwin
b9dcb35e9b
fix(Angular.js): don't crash on invalid query parameters
2013-06-20 14:32:05 +01:00
Caio Cunha
25d9f5a804
fix($http): ensure case-insens. header overriding
...
If user send content-type header, both content-type and default
Content-Type headers were sent. Now default header overriding is
case-insensitive.
2013-06-19 22:43:19 +01:00
Ore Landau
499baced12
docs(loader): fix typo and minor semantic error
2013-06-18 21:23:00 +01:00
Misha Moroshko
9b6c82d804
docs(select): fix typos in ngOptions
2013-06-13 22:48:03 +01:00
Ore Landau
c3117b7544
docs($q): fix a few issues
2013-06-13 22:42:26 +01:00
Dean Sofer
488aea15f4
docs(FormController): add methods for FormController
2013-06-12 21:49:52 +01:00
Dean Peterson
43df853ee3
docs(ngModelController): improve $parsers/$formatters with example
2013-06-12 21:23:16 +01:00
Ore Landau
28d5dcb578
docs(ngClass): fix minor typo.
2013-06-12 20:47:59 +01:00
Pete Bacon Darwin
1fac36e2cb
docs(ngRoute): clarify when gets updated
2013-06-11 22:35:47 +01:00
Pete Bacon Darwin
4b6c87b6e7
docs(ngSubmit): clarify that there must be no action attribute
2013-06-11 21:30:10 +01:00
Igor Minar
ce6c2b2072
chore(docs): fix memory leak in example embed code
...
we need to sever the link between the main root scope and the example
root scope - this is only needed because we are embedding one app
in the other.
2013-06-10 13:10:38 -07:00
Marcin Wosinek
9870e65c5f
docs(ngTransclude): fix outdated scope definition in example
2013-06-04 22:14:15 +01:00
Robbie Ferrero
fdb66aa237
docs(Angular.js): clarify ngApp usage
2013-06-04 22:01:26 +01:00
Robb Shecter
e0ca5fdd51
docs(angular-mocks): fix typo in example
...
fromJSON() should be fromJson()
2013-06-04 21:54:05 +01:00
Alan Klement
681c1c53e4
docs(sanitize): add @description section
2013-06-04 21:50:38 +01:00
Luc Morin
944bda12c7
docs(ngClass): clarify the use of object map
2013-06-04 21:01:43 +01:00
Luc Morin
bc76e7255b
docs(input): provide explanation of how ngModel will affect the local scope
2013-06-04 20:16:37 +01:00
Michał Gołębiowski
815053e403
fix(jqLite): correctly monkey-patch core jQuery methods
...
When real jQuery is present, Angular monkey patch it to fire `$destroy` event.
This commit fixes two issues in the jQuery patch:
- passing a selector to the $.fn.remove method (only fire `$destroy` on the matched elements)
- using `$.fn.html` without parameters as a getter (do not fire `$destroy`)
2013-05-23 11:45:57 -07:00
Anatoly Shikolay
ae33e11694
style(*): fix up semicolon and var usage
...
Conflicts:
src/ng/animation.js
src/ng/animator.js
src/ng/http.js
2013-05-21 14:41:22 -07:00
Joakim Blomskøld
84fe86c7fd
docs(Angular.js): add missing @returns to extend()
2013-05-21 21:39:53 +01:00