Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/angular/directive/itemDeleteButton.js
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ IonicModule
compile: function($element, $attr) {
//Add the classes we need during the compile phase, so that they stay
//even if something else like ngIf removes the element and re-addss it
$attr.$set('class', ($attr.class || '') + ' button icon button-icon', true);
$attr.$set('class', ($attr['class'] || '') + ' button icon button-icon', true);
return function($scope, $element, $attr, ctrls) {
var itemCtrl = ctrls[0];
var listCtrl = ctrls[1];
2 changes: 1 addition & 1 deletion js/angular/directive/itemOptionButton.js
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ return {
require: '^ionItem',
priority: Number.MAX_VALUE,
compile: function($element, $attr) {
$attr.$set('class', ($attr.class || '') + ' button', true);
$attr.$set('class', ($attr['class'] || '') + ' button', true);
return function($scope, $element, $attr, itemCtrl) {
if (!itemCtrl.optionsContainer) {
itemCtrl.optionsContainer = angular.element(ITEM_TPL_OPTION_BUTTONS);
2 changes: 1 addition & 1 deletion js/angular/directive/itemReorderButton.js
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ IonicModule
require: ['^ionItem', '^ionList'],
priority: Number.MAX_VALUE,
compile: function($element, $attr) {
$attr.$set('class', ($attr.class || '') + ' button icon button-icon', true);
$attr.$set('class', ($attr['class'] || '') + ' button icon button-icon', true);
$element[0].setAttribute('data-prevent-scroll', true);
return function($scope, $element, $attr, ctrls) {
var itemCtrl = ctrls[0];

0 comments on commit 3bcf06f

Please sign in to comment.