aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2013-01-17fix(angular.equals): consistently compare undefined object propsIgor Minar
previously: a = {}; b = {x:undefined}; angular.equals(a, b) == angular.equals(b, a) // returns false. both should return false because these objects are not equal. unlike in implemented in #1695 the comparison should be stricter and return false not true. if we need to relax this in the future we can always do so. Closes #1648
2013-01-17feat($log): add $log.debug()nlaplante
New debug() method with suppressable output via $logProvider.debugEnabled() Closes #1592
2013-01-17fix($compile): do not wrap empty root text nodes in spansPete Bacon Darwin
Closes #1059
2013-01-17fix(ngRepeat): correctly apply $last if repeating over objectPete Bacon Darwin
If the $last property is calculated from the original collectionLength on an object and properties starting with $ were filtered out, then $last is never applied and $middle is applied erroniously. Closes #1789
2013-01-16fix(scenario): don't trigger input events on IE9Igor Minar
input.enter() should trigger 'change' rather than 'input' event on IE9 because input events on IE9 are broken and angular doesn't rely on them
2013-01-16fix($route): support route params not separated with slashes.Martin Probst
Commit 773ac4a broke support for route parameters that are not seperated from other route parts by slashes, which this change fixes. It also adds some documentation about path parameters to the when() method and escapes all regular expression special characters in the URL, not just some.
2013-01-14fix($compile): safely create transclude comment nodesIgor Minar
Closes #1740
2013-01-09feat($compile): support modifying the DOM structure in postlink fnMartin Probst
Support modifying the DOM structure in the post link function of a directive by creating a defensive copy of the node list, as opposed to a live DOM list. This is useful for directives to actually replace their entire DOM fragment, e.g. with the HTML fragment generated by a 3rd party component (Closure, Bootstrap ...). Fix the indentation of the compileNodes function (was one too little).
2013-01-09style($compile): fix indentationIgor Minar
2013-01-09fix(date): parse string input as local time unless TZ is specifiedIgor Minar
previously we were always parsing the string input as UTC which cased issues like: {{ '2012-04-01' | date:'d MMM yyyy' }} renders as 31 Mar 2012 BREAKING CHANGE: string input without timezone info is now parsed as local time/date Closes #847
2013-01-09fix(jqLite): children() should only return elementsPete Bacon Darwin
The jQuery implementation of children only returns child nodes of the given element that are elements themselves. The previous jqLite implementation was returning all nodes except those that are text nodes. Use jQLite.contents() to get all the child nodes. The jQuery implementation of contents returns [] if the object has no child nodes. The previous jqLite implementation was returning undefined, causing a stack overflow in test/testabilityPatch.js when it tried to `cleanup()` a window object. The testabilityPatch was incorrectly using children() rather than contents() inside cleanup() to iterate down through all the child nodes of the element to clean up.
2013-01-08fix(jqLite): make next() ignore non-element nodesKeyamoon
next() is supposed to return the next sibling *element* so it should ignore text nodes. To achieve this, nextElementSibling() should be used instead of nextSibling().
2013-01-08fix($injector): remove bogus fn argIgor Minar
getService fn takes only one argument, removing the second one. Closes #1711
2013-01-08refactor($browser): remove faulty 20+ cookies warningIgor Minar
the warning is defunct (and the test is incorrect) so obviously nobody is using it and it just takes up space. also the browser behavior varies (ff and chrome allow up to 150 cookies, safari even more), so it's not very useful. Closes #1712
2013-01-08revert: fix(a): prevent Opera from incorrectly navigating on link clickIgor Minar
This reverts commit c81d8176cc55cd15acae05259ead73f90a01f0b7. This commit causes several issues (#1651, #1674, #1662) and doesn't even contain a test that proves that anything on Opera got actually fixed. If the original Opera resurfaces, we'll fix it properly.
2013-01-04docs(form): minor form doc and example fixesJonathan Card
Form documentation fixes: - Fix broken form example in docs - A few small other corrections in form docs.
2013-01-03docs($http): clarify documentation on error status codesPer Rovegård
Modify the documentation for $http to correspond to what Angular considers a success status code. Closes #1693
2012-12-20feat($timeout-mock): add verifyNoPendingTasks methodpetrovalex
added verifyNoPendingTasks method, which throws error if not all deferred tasks have been flushed Closes #1245
2012-12-19docs(anchorScroll): correct word "location"Murilo da Silva
2012-12-19feat(limitTo): limitTo filter accepts stringsJeremy Tymes
This allows strings to be filtered by limitTo, using the same methods Closes #653
2012-12-18feat(directive): ng:keydown, ng:keyupMark Nadig
New directives for binding to keydown and keyup events. Closes #1035
2012-12-17docs(ngView): fix code example (change template to templateUrl)Pawel Kozlowski
Closes #1715
2012-12-14docs(q): added testing informationMiško Hevery
2012-12-14fix($route): correctly extract $routeParams from urlsGonzalo Ruiz de Villa
Routes like '/bar/foovalue/barvalue' matching '/bar/:foo/:bar' now are well mapped in $routeParams to: {bar:'barvalue', foo:'foovalue'} Closes: #1501 Signed-off-by: Gonzalo Ruiz de Villa <gonzaloruizdevilla@gmail.com>
2012-12-09docs($resource): document port number escaping and fix typoJuha Syrjälä
Closes #1243
2012-12-07docs($q): typo fix - programing -> programmingEric Case
2012-12-06docs($http): fix link typo in $http docJeremy Tymes
Should be $httpBackend instead of $httpBacked Closes #1516
2012-12-06docs(mocks): update src/ngMock/angular-mocks.js documentationFred Sauer
Clarify how to use `$exceptionHandlerProvider.mode('log')` in tests
2012-12-06docs(mocks): fix documentation bug: angular.mock.debugFred Sauer
2012-12-05chore(bootstrap-prettify): update urls to code.angularjs.orgIgor Minar
Closes #1599
2012-12-05fix(select): support optgroup + select[multiple] combo_pants
Closes #1553
2012-12-01feat(e2eRunner): fail when an option to select does not existStephane Bisson
2012-12-01fix($injector): provider can now be defined in the array formatSudhir Jonathan
`injector.instantiate` is now called for arrays too, instead of only for functions. Closes #1452
2012-11-30fix($resource): HTTP method should be case-insensitiveSudhir Jonathan
Perform call `angular.uppercase` on all given action methods. Closes #1403
2012-11-30refactor($resource): fix indentation and move a method definitionCezar Berea
Moved Resource.bind out of the actions forEach
2012-11-30fix(Scope): ensure that a scope is destroyed only onceIgor Minar
Due to bd524fc4 calling $destroy() on a scope mupltiple times cases NPE. Closes #1627
2012-11-28feat($resource): allow dynamic default parametersPascal Corpet
Default resource params can now be calculated at runtime if defined via a function.
2012-11-26fix($http): only set X-XSFR-TOKEN header for same-domain requestRado Kirov
This is needed to prevent CORS preflight checks. The XSFR token is quite useless for CORS requests anyway. BREAKING CHANGE: X-XSFR-TOKEN is no longer send for cross domain requests. This shouldn't affect any known production service. Closes #1096
2012-11-26fix($http): remove 'X-Requested-With' from header defaultsRado Kirov
X-Requested-With header is rarely used in practice and by using it all the time we are triggering preflight checks for crossdomain requests. We could try detecting if we are doing CORS requests or not, but it doesn't look like it's worth the trouble. BREAKING CHANGE: X-Requested-With header is not set by $http service any more. If anyone actually uses this header it's quite easy to add it back via: ``` myAppModule.config(['$httpProvider', function($httpProvider) { $httpProvider.defaults.headers.common["X-Requested-With"] = 'XMLHttpRequest'; }]); ``` Closes #1004
2012-11-26fix($location): reset $location.$$replace with every watch callRado Kirov
Closes #1111
2012-11-26fix(ngClassOdd/ngClassEven): support shrinking/reordering in repeatersIgor Minar
We need to watch $index in addition to cssClasses because only then we can correctly respond to shrinking or reordered repeaters. Closes #1076
2012-11-26style(jqLite): better variable namesIgor Minar
selector => cssClasses
2012-11-26fix(ngRepeat): support mostly-stable repeating for primitivesIgor Minar
I'm reverting changes that were originally done to ngRepeat to fix #933, because these are now not necessary after the previous changes to keep ngModel always synced with the DOM.
2012-11-26fix(ngModel): sync ngModel state with scope stateIgor Minar
In cases when we reuse elements in a repeater but associate them with a new scope (see #933 - repeating over array of primitives) it's possible for the internal ngModel state and the scope state to get out of sync. This change ensure that the two are always sync-ed up even in cases where we reassociate an element with a different (but similar) scope. In the case of repeating over array of primitives it's still possible to run into issue if we iterate over primitives and use form controls or similar widgets without ngModel - oh well, we'd likely need a special repeater for primitives to deal with this properly, even then there might be cornercases. Closes #933
2012-11-26fix(ngRepeat): attempt to simplify and improve existing fix for #933Igor Minar
I'm keeping this in for future reference. The issue with this solution is that if we shift() the first item in the array, the whole repeater DOM will be rebuilt from scratch, we need to do better than that.
2012-11-26feat(form): add ability to reset a form to pristine statePawel Kozlowski
Retting a form to pristine state will cause all of the nested form and form controls to be recursively reset as well. Closes #856
2012-11-26fix(jqLite): support append on document fragmentIgor Minar
previously jquery didn't support append on this node type, now it does (since 1.8.x) so I'm adding this to jqlite as well.
2012-11-26fix(jqLite): fire $destroy event via triggerHandlerIgor Minar
in jQuery 1.8.x the data() data structure is changed and events are not accessible via data().events. Since all we need is to trigger all event handlers, we can do so via triggerHandler() api instead of mocking with the internal jQuery data structures. This fix was originally proposed by PeteAppleton via PR #1512. Closes #1512
2012-11-26feat(jqLite): add triggerHandler()Igor Minar
we need triggerHandler() to become jQuery 1.8.x compatible. this is not fully featured triggerHandler() implementation - it doesn't bother creating new DOM events and passing them into the event handlers. this is intentional, we don't need access to the native DOM event for our own purposes and creating these event objects is really tricky.
2012-11-25fix(Scope): allow removing a listener during eventVojta Jina