Skip to content

Commit

Permalink
style(ionRefresher): remove added space
Browse files Browse the repository at this point in the history
Fixes #1167
  • Loading branch information
ajoslin committed Apr 21, 2014
1 parent 09a7729 commit a33ca26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions js/angular/directive/refresher.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ IonicModule
'<div class="scroll-refresher">' +
'<div class="ionic-refresher-content">' +
'<i class="icon {{pullingIcon}} icon-pulling"></i>' +
'<div class="text-pulling" ng-bind-html="pullingText || \'&nbsp;\'"></div>' +
'<div class="text-pulling" ng-bind-html="pullingText"></div>' +
'<i class="icon {{refreshingIcon}} icon-refreshing"></i>' +
'<div class="text-refreshing" ng-bind-html="refreshingText || \'&nbsp;\'"></div>' +
'<div class="text-refreshing" ng-bind-html="refreshingText"></div>' +
'</div>' +
'</div>',
compile: function($element, $attrs) {
Expand Down
8 changes: 0 additions & 8 deletions test/unit/angular/directive/refresher.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ describe('ionRefresher directive', function() {
expect(el[0].querySelector('.icon.icon-refreshing.monkey-icon')).toBeTruthy();
});

it('should have &nbsp; pulling-text by default', function() {
var el = setup();
expect(el[0].querySelector('.text-pulling').innerHTML).toBe('&nbsp;');
});
it('should have &nbsp; refreshing-text by default', function() {
var el = setup();
expect(el[0].querySelector('.text-refreshing').innerHTML).toBe('&nbsp;');
});
it('should allow pullingText', function() {
var el = setup('pulling-text="{{2+2}} <b>some</b> text"');
expect(el[0].querySelector('.text-pulling').innerHTML).toBe('4 <b>some</b> text');
Expand Down

0 comments on commit a33ca26

Please sign in to comment.