This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ angular.scenario.dsl.repeater = function(selector) {
56
56
var self = this ;
57
57
var doCollect = bind ( this , function ( ) {
58
58
var repeaterArray = [ ] ;
59
- this . testDocument . find ( selector ) . each ( function ( index ) {
59
+ this . testDocument . find ( selector ) . each ( function ( ) {
60
60
var element = angular . extend ( self . jQuery ( this ) ,
61
61
{ bindings : [ ] ,
62
62
boundTo : function ( name ) { return this . bindings [ name ] ; } }
63
63
) ;
64
- element . find ( '*' ) . each ( function ( index ) {
64
+ element . find ( '*' ) . each ( function ( ) {
65
65
var bindName = self . jQuery ( this ) . attr ( 'ng:bind' ) ;
66
66
if ( bindName ) {
67
67
element . bindings [ bindName ] = self . jQuery ( this ) . text ( ) ;
@@ -85,10 +85,10 @@ angular.scenario.dsl.element = function(selector) {
85
85
bindings : [ ] ,
86
86
boundTo : function ( name ) { return this . bindings [ name ] ; }
87
87
} ) ;
88
- element . find ( '*' ) . each ( function ( index ) {
89
- var bindName = self . jQuery ( this ) . attr ( 'ng:bind' ) ;
88
+ element . find ( '*' ) . each ( function ( ) {
89
+ var bindName = self . jQuery ( elem ) . attr ( 'ng:bind' ) ;
90
90
if ( bindName ) {
91
- element . bindings [ bindName ] = self . jQuery ( this ) . text ( ) ;
91
+ element . bindings [ bindName ] = self . jQuery ( elem ) . text ( ) ;
92
92
}
93
93
} ) ;
94
94
done ( element ) ;
Original file line number Diff line number Diff line change @@ -85,14 +85,14 @@ describe("DSL", function() {
85
85
var html ;
86
86
beforeEach ( function ( ) {
87
87
html = '<div class="container">' +
88
- '<table class="reports-detail">' +
88
+ '<div class="reports-detail">' +
89
89
'<span class="desc">Description : ' +
90
90
'<span ng:bind="report.description">Details...</span>' +
91
91
'</span>' +
92
92
'<span>Date created: ' +
93
93
'<span ng:bind="report.creationDate">01/01/01</span>' +
94
94
'</span>' +
95
- '</table >' +
95
+ '</div >' +
96
96
'</div>' ;
97
97
} ) ;
98
98
it ( 'should find elements on the page and provide jquery api' , function ( ) {
You can’t perform that action at this time.
0 commit comments