process(parent:CompileElement, current:CompileElement, control:CompileControl) {
    var hasBindings =
      (isPresent(current.textNodeBindings) && MapWrapper.size(current.textNodeBindings)>0) ||
      (isPresent(current.propertyBindings) && MapWrapper.size(current.propertyBindings)>0) ||
      (isPresent(current.variableBindings) && MapWrapper.size(current.variableBindings)>0) ||
      (isPresent(current.eventBindings) && MapWrapper.size(current.eventBindings)>0) ||
      (isPresent(current.decoratorDirectives) && current.decoratorDirectives.length > 0) ||
      isPresent(current.templateDirective) ||
      isPresent(current.componentDirective);

    if (hasBindings) {
      var element = current.element;
      DOM.addClass(element, NG_BINDING_CLASS);
      current.hasBindings = true;
    }
  }
Example #2
0
 get numberOfKeys():int {
   return MapWrapper.size(this._allKeys);
 }