Skip to content

Commit

Permalink
fix(android-2.2): use dot notation for reserved 'class' keyword
Browse files Browse the repository at this point in the history
Closes #1228
  • Loading branch information
ajoslin committed Apr 29, 2014
1 parent 6c0c835 commit 3bcf06f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/angular/directive/itemDeleteButton.js
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion js/angular/directive/itemOptionButton.js
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion js/angular/directive/itemReorderButton.js
Expand Up @@ -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];
Expand Down

0 comments on commit 3bcf06f

Please sign in to comment.