style(ionRefresher): remove added space

Fixes #1167
This commit is contained in:
Andy Joslin
2014-04-21 12:29:25 -06:00
parent 09a7729914
commit a33ca26465
2 changed files with 2 additions and 10 deletions

View File

@@ -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) {

View File

@@ -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');