Skip to content

Commit 124a6d1

Browse files
author
Adam Bradley
committed
slim it down
1 parent 3fb3fab commit 124a6d1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

js/ext/angular/src/directive/ionicContent.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ angular.module('ionic.ui.content', ['ionic.ui.service'])
4747
if(attr.hasSubheader == "true") { element.addClass('has-subheader'); }
4848
if(attr.hasFooter == "true") { element.addClass('has-footer'); }
4949
if(attr.hasTabs == "true") { element.addClass('has-tabs'); }
50-
if(attr.padding == "true") {
51-
var scroll = element.find('.scroll');
52-
if(scroll.length) {
53-
scroll.addClass('padding');
54-
}
55-
}
50+
if(attr.padding == "true") { element.find('.scroll').addClass('padding'); }
5651

5752
return function link($scope, $element, $attr) {
5853
var clone, sc, sv,

0 commit comments

Comments
 (0)