Skip to content
Permalink
Tag: v1.4.14
Commits on Oct 11, 2016
  1. test(input-hidden): fix linting issue

    petebacondarwin committed Oct 11, 2016
  2. fix($compile): ensure that hidden input values are correct after hist…

    petebacondarwin committed Oct 11, 2016
    …ory.back
    
    Due to the nature of some browser's PageCache/BFCache, returning to an Angular
    app sometimes causes `input[hidden]` elements to retain the last value
    that was stored before the page was navigated away from previously.
    
    This is particularly problematic if the input has an interpolated value.
    E.g. `<input type="hidden" value="{{ 1 + 2 }}">` since when the browser
    returns, instead of the original interpolation template, the HTML contains
    the previous value `<input type="hidden" value="3">`.
    
    This commit instructs the browser not to attempt to reinstate the previous
    value when navigating back in history by setting `autocomplete="off"` on
    the hidden input element element.
  3. revert:fix(input): ensure that hidden input values are correct after …

    petebacondarwin committed Oct 11, 2016
    …history.back
    
    This reverts commit 693d133.
    There was a regression against angular-material that relied upon the input directive
    having `link.pre` property.
Commits on Oct 10, 2016
  1. docs(CHANGELOG): add 1.4.13 release info

    petebacondarwin committed Oct 10, 2016
  2. fix(input): ensure that hidden input values are correct after history…

    petebacondarwin committed Oct 7, 2016
    ….back
    
    Due to the nature of some browser's PageCache/BFCache, returning to an Angular
    app sometimes causes `input[hidden]` elements to retain the last value
    that was stored before the page was navigated away from previously.
    
    This is particularly problematic if the input has an interpolated value.
    E.g. `<input type="hidden" value="{{ 1 + 2 }}">` since when the browser
    returns, instead of the original interpolation template, the HTML contains
    the previous value `<input type="hidden" value="3">`.
    
    This commit instructs the browser not to attempt to reinstate the previous
    value when navigating back in history by setting `autocomplete="off"` on
    the hidden input element element.
Commits on Jun 7, 2016
  1. docs(changelog, guide/migration): mention rare BC for ngInclude

    Narretz committed Jun 7, 2016
    See #13555 (comment)
    for detailed explanation.
Commits on May 31, 2016
  1. docs(tutorial): add deprecation notice to v1.4.x tutorial and point t…

    gkalpak committed May 25, 2016
    …o the correct branch
    
    - Add a deprecation notice on the 'index' page.
    - Hide the "Live Demo" buttons (since we don't have a live demo).
    - Update the GitHub diff links to point to the `1.4-snapshot` angular-phonecat branch.
    - Modify all git commangs to use the appropriate branch and tags (e.g. `1.4-step-*`).
    
    Related to #14416.
    
    Closes #14675
Commits on May 27, 2016
  1. docs(changelog): update with changes for 1.4.11

    Narretz committed May 27, 2016
Commits on May 24, 2016
  1. fix(ngAnimate): safe-guard against missing document

    Narretz committed May 24, 2016
    In tests, the $document service might be mocked out without providing a real
    document, which can lead to errors when the animator is attempting to read properties from it.
    
    This commit provides an object {hidden: true}, if the $document service doesn't have 
    a document. This will prevent the animation process from trying to run any animations.
    
    This commit also changes the check for document.hidden slightly. It
    should be accessed independently of the current animationsEnabled state.
    Since animations are only enabled after two digests, it's possible that
    some tests never reach the animationsEnabled = true state and therefore
    aren't actually checking the document.hidden state, which means that
    the previous fix only works if no more than two digests happen in the test.
    
    (#14633)
Commits on May 17, 2016
  1. fix(ngAnimate): guard $document[0].hidden access in case it was mocke…

    IgorMinar committed May 17, 2016
    …d out
    
    Some tests mock out  and now that we always access the hidden property, existing
    tests can get broken. This change keeps the existing tests working.
Commits on May 13, 2016
  1. docs(guide/$location): fix typo

    sanderboom authored and gkalpak committed May 13, 2016
    Closes #14607
Commits on May 9, 2016
  1. Revert: ngAnimate changes for listening on visibilitychange

    Narretz committed May 9, 2016
    Reverts d3e123b, bf1acf7 and aa28e48.
    Backporting the changes is complicated because we don't destroy the rootScope
    after each test in 1.4.x
    (#14574)
Commits on May 6, 2016
  1. test($$isDocumentHidden): really fix jasmine syntax

    Narretz committed May 6, 2016
  2. test($): fix jasmine syntax

    Narretz committed May 6, 2016
  3. fix(ngAnimate): properly handle empty jqLite collections

    maksimr authored and gkalpak committed May 4, 2016
    Previously `stripCommentsFromElement()` would return an empty Array (instead of a jqLite collection)
    which would cause an exception to be thrown: "element.parent not a function".
    This commit fixes it, by ensuring that the returned value is always a jqLite collection.
    
    Closes #14558
    
    Closes #14559
  4. docs($location): clarify return value for path method

    FGasper authored and Narretz committed May 6, 2016
    docs for return of path() inaccurately describe the function’s return when a value is passed in.
    
    Closes #14544
  5. docs(guide/decorators): add decorator guide

    sjbarker authored and Narretz committed May 6, 2016
    + explain decorators and how they are implemented in angular
    + explain how different types of services can be selected
    + explain `$delegate` objects and how they differ between services
    + warn of the risks/caveats of `$delegate` modification
    + note the exposure of `decorator` through the module api
    + show an example of decorating a core service
    + show an example of decorating a core directive
    + show an example of decorating a core filter
    
    Closes #12163
    Closes #14372
  6. docs(ngRequired): add 'restrict' info

    MichaelJGW authored and Narretz committed May 6, 2016
    The Angular Docs do not show the restrictions
    
    Closes #14541
  7. perf(ngAnimate): listen for document visibility changes

    Narretz committed Apr 26, 2016
    Accessing the document for the hidden state is costly for
    platforms like Electron. Instead, listen for visibilitychange
    and store the state.
    
    Closes #14066
Commits on Apr 28, 2016
  1. fix(ng-bind-html): watch the unwrapped value using `$sce.valueOf()` (…

    mprobst authored and gkalpak committed Apr 27, 2016
    …instead of `toString()`)
    
    Custom `$sce` implementations might not provide a `toString()` method on the wrapped object, or it
    might be compiled away in non-debug mode. Watching the unwrapped value (retrieved using
    `$sce.valueOf()`) fixes the problem.
    
    The performance of this should be equivalent - `toString()` on objects usually touches all fields,
    plus we will also avoid the (potentially big) string allocation.
    
    Fixes #14526
    Closes #14527
  2. docs(identity): add example

    dotku authored and gkalpak committed Apr 28, 2016
    Closes #14528
Commits on Apr 26, 2016
  1. fix($compile): properly handle setting `srcset` to undefined

    rphv authored and gkalpak committed Apr 22, 2016
    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
  2. docs(guide/index): fixed formatting with subtitles

    tupini07 authored and gkalpak committed Apr 26, 2016
    The "Books" and "Videos" subtitles had no space between text and the '#' so it didn't render as a
    subtitle.
    
    Closes #14514
Commits on Apr 25, 2016
  1. docs($anchorScroll): fix link to HTML5 spec

    timvdalen authored and gkalpak committed Apr 3, 2016
    Closes #14364
  2. test($templateRequest): fix code for jasmine 1.3

    gkalpak committed Apr 25, 2016
  3. fix($templateRequest): trust empty templates in `$templateCache` as well

    rjamet authored and gkalpak committed Apr 22, 2016
    Implicitly trust empty templates added to `$templateCache` as is the case for all other templates.
    
    Fixes #14479
    
    Closes #14496
Commits on Apr 22, 2016
  1. docs($interpolate): add known issue about end-symbol in expression

    gkalpak committed Apr 22, 2016
    This has been discussed in #8642.
    
    Closes #14494
  2. fix(filters): always call `splice()` with 2 arguments or more

    gkalpak committed Apr 22, 2016
    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
Commits on Apr 14, 2016
  1. docs($http): fix a typo (his --> this)

    cloverharvest authored and gkalpak committed Apr 14, 2016
    Closes #14430
Commits on Apr 13, 2016
  1. test(ngAnimate): fix jasmine syntax

    Narretz committed Apr 13, 2016
  2. perf($compile): use createMap() for directive bindings to allow fast …

    jbedard authored and gkalpak committed Aug 9, 2015
    …forEach
    
    Closes #12529
Commits on Apr 12, 2016
  1. fix(ngAnimate): fire callbacks when document is hidden

    Narretz committed Mar 14, 2016
    Since commit a3a7afd, animations are not run
    when the document is hidden (only their structural or class change effects are executed).
    However, some libraries rely on the $animate.on() callbacks to be called even when no actual animation
    runs.
    This commit restores the behavior for the ngAnimate.$animate functions.
    Note that callbacks still won't be called if animations are disabled, because this would be be a potential
    breaking change, as some applications might rely on this implementation.
    
    Fixes #14120
  2. docs(Module): fix parameter names for `.decorator()`

    thorn0 authored and gkalpak committed Apr 11, 2016
    Closes #14413
Older
You can’t perform that action at this time.