I am using Angular 1.4 RC 2 and the Angular New Router.

My code was like this before and it worked fine:

        newTickers.forEach(function loopTickers(ticker, index) {

          transclude(function transcludeTicker(clone, childScope) {

           ...

            $element.append(clone[1]);

          });

        });


That's because the clone object was like this:


   1. clone: jQuery.fn.init[3]
               1. 0: text
               2. 1: div.ticker-carousel__ticker-box.ng-scope
               3. 2: text
               4. context: text
               5. length: 3
            

Now I migrated my code to a environment with gulp build process, similar to 
gulp-angular.

The clone object looks like this:

   1. clone: jQuery.fn.init[1]
                  1. 0: div.ticker-carousel__ticker-box.ng-scope
                  2. context: div.ticker-carousel__ticker-box.ng-scope
                  3. length: 1
               

Now I have to do this:

        newTickers.forEach(function loopTickers(ticker, index) {

          transclude(function transcludeTicker(clone, childScope) {

            ...

            $element.append(clone.length > 1 ? clone[1] : clone[0]);

          });

        });

 

Is this clone object done by jQuery?  Is this a jQuery version problem?  I 
can't find enough documentation for it.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to