Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix($mdUtil): make "initOptionalProperties" compatible with angular >= 1.4.1 #3316

Closed
wants to merge 2 commits into from
Closed

Conversation

mprokopowicz
Copy link
Contributor

starting form angular 1.4.1 attrs defined in directive isolated scope are always present in $attrs

Closes #3315

…= 1.4.1

starting form angular 1.4.1 attrs defined in directive isolated scope are always present in $attrs

Closes #3315
*/
initOptionalProperties: function (scope, attr, defaults ) {
defaults = defaults || { };
angular.forEach(scope.$$isolateBindings, function (binding, key) {
var normalizedAttrName = attr.$normalize(binding.attrName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant (I don't know why it was there in the first place).
binding.attrName is already normalized.

@mprokopowicz
Copy link
Contributor Author

I've simplified this fix as gkalpak suggested.

kseamon added a commit to kseamon/material that referenced this pull request Jun 18, 2015
Implements a virtual repeater to use instead of ng-repeat for substantially
better performance in components.

review edits

Make tests pass in FF.

fix(tabs): prevents error on empty tab list

Closes angular#3264

fix(button): fixes button styles for components that override their default styles

chore(toast): fix type typo in toast docs (`boolean` > `string`).

fix(utils): update for Angular 1.4.1 compatibility

Fixes angular#3315, Fixes angular#3325.

fix(icons): improve use of material-icons style

Improve logic to auto-add `.material-icons` style to **md-icon**.
> NOTE: will not auto-add if using any class or ng-class attributes; see demoFontIconsWithLigatures

Fixes angular#3333.

update(icon): removed **ddescribe** used for isolated karma tests

update(docs, icon): clarify auto-add of 'material-icons' style.

update(build): use of Angular v1.4.1

update(util): update initOptionalProperties() implementation

Closes angular#3316.

feat(menu): do not propagate event in mdOpenMenu

Do not propagate the event in mdOpenMenu. This way a menu can be nested in elements that also have handlers of the same event type, without triggering any of these events. To enable this functionality, `$event` should be passed as the first argument to `$mdOpenMenu`.

Fixes angular#3296. Closes angular#3332.

update(tests, mocks):  test for stopPropogation

angular-material-mocks captures $timeout.flush() errors.
add menu event propogation test

Switched RawGit for GitCDN

Switch to GitCDN, which lets you get the latest master branch, without losing the CDN and without it's service getting harmed.

Closes angular#3262.

update(README): change docs to reference 0.10.0

Closes angular#3319.
@Splaktar Splaktar added this to the 0.10.1 milestone Sep 21, 2018
@angular angular locked as resolved and limited conversation to collaborators Sep 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants