Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

refactor(carousel): simplify active in slide directive #1602

Closed
wants to merge 2 commits into from
Closed

refactor(carousel): simplify active in slide directive #1602

wants to merge 2 commits into from

Conversation

mvhecke
Copy link
Contributor

@mvhecke mvhecke commented Jan 17, 2014

As part of simplifying things in this project I've attempted to remove unnecessary code for the active slide. While testing it all seems to work.

@@ -297,7 +297,7 @@ function CarouselDemoCtrl($scope) {
</example>
*/

.directive('slide', ['$parse', function($parse) {
.directive('slide', [function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the array to save 2 extra characters :-D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, changed it!

refactor(carousel): simplify active in slide directive
@pkozlowski-opensource
Copy link
Member

Nice one @Gamemaniak 👍

@Foxandxss
Copy link
Contributor

@pkozlowski-opensource This change breaks in 1.0.x!

=? is not supported until 1.2.x, so if we still maintain compatibility with 1.0.x, you need to revert this.

EDIT: Seeing that @bekos did it on the accordion too, I guess that we are moving to drop 1.0.x in the next release.

@pkozlowski-opensource
Copy link
Member

@Foxandxss yup, if we want to have this library moving forward I think we need to focus on 1.2.

@Foxandxss
Copy link
Contributor

Good good, didn't now that we started to 1.2. Good to know in my redo adventure to catch some changes :)

@mvhecke
Copy link
Contributor Author

mvhecke commented Jan 18, 2014

@pkozlowski-opensource We mustn't forget to update the docs dependency to 1.2.x if you plan to release this, just a heads up.

@pkozlowski-opensource
Copy link
Member

Thnx @Gamemaniak, you are right, done in a61112d

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.

4 participants