aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngClass.js
AgeCommit message (Collapse)Author
2013-04-29refact(ngClass): improve performance through bitwise operationsRobin Böhm
Change modulo % 2 operations to bitwise & 1 Read about this in Nicholas C. Zakas book "High Performance JavaScript"(ISBN: 978-0-596-80279-0) Use the Fast Parts --> Bitwise Operators --> Page 156++ Proven at http://jsperf.com/modulo-vs-bitwise/11
2013-04-17doc(ngClassEven): make consistent with ngClassOddes128
2013-04-16fix(ngClass): should remove classes when object is the same but property has ↵Pete Bacon Darwin
changed If you wire up ngClass directly to an object on the scope, e.g. ng-class="myClasses", where scope.myClasses = { 'classA': true, 'classB': false }, there was a bug that changing scope.myClasses.classA = false, was not being picked up and classA was not being removed from the element's CSS classes. This fix uses angular.equals for the comparison and ensures that oldVal is a copy of (rather than a reference to) the newVal.
2013-02-18fix(ngClass): keep track of old ngClass value manuallyPer Rovegård
ngClassWatchAction, when called as a $watch function, gets the wrong old value after it has been invoked previously due to observation of the interpolated class attribute. As a result it doesn't remove classes properly. Keeping track of the old value manually seems to fix this. Closes #1637
2013-02-04docs(ngClass): fix typo in descriptionPowerKiKi
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-09-06fix(*): name all anonymous watch functions in AngularShyam Seshadri
This will allow us to see function names in Batarang and debugger. Closes #1119
2012-09-06fix(ngClass): works with class interpolationMax Martinsson
Closes #1016
2012-06-12docs(*): simplify doc urlsIgor Minar
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
2012-06-02doc(guide): clean up broken linksMisko Hevery
2012-05-04chore(docs): re-skin main documentationMisko Hevery
2012-04-09fix(docs): change all directive references to use the normalized namesIgor Minar
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery