mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feature(DOM): Experiment w/ excluding 'ng-scope' and 'ng-isolate-scope' classnames from elements
Ultimate goal is to reduce DOM manipulations. It appears 'ng-scope' and 'ng-isolate-scope' classnames are not required for Angular to work. So in an effort to reduce any DOM manipulations, we’re going to try to excluding them from being added to elements and see what comes of it.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
angular.element.prototype.addClass = function(cssClasses) {
|
||||
var x, y, cssClass, el, splitClasses, existingClasses;
|
||||
if (cssClasses) {
|
||||
if (cssClasses && cssClasses != 'ng-scope' && cssClasses != 'ng-isolate-scope') {
|
||||
for(x=0; x<this.length; x++) {
|
||||
el = this[x];
|
||||
if(el.setAttribute) {
|
||||
|
||||
Reference in New Issue
Block a user