Skip to content
This repository has been archived by the owner on Nov 13, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:rolandschwan/com.rolandschwan.ico…
Browse files Browse the repository at this point in the history
…nlabel
  • Loading branch information
RSchwan committed Mar 7, 2016
2 parents 6df363f + f1b2bef commit 0112a6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion controllers/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ text = text.replace(/fa-[a-z-]+/g, function (match)
});
$.iconLabel.text = text;

// classes fix for Android
if (OS_ANDROID) {
var classes = args.classes || [];
$.iconLabel.classes = classes;
}

// workaround for android
exports.on = function(name, cb) { return $.iconLabel.addEventListener(name, cb); };
exports.off = function(name, cb) { return $.iconLabel.removeEventListener(name, cb); };
Expand All @@ -38,4 +44,4 @@ exports.addEventListener = $.iconLabel.addEventListener;
exports.removeEventListener = $.iconLabel.removeEventListener;

exports.trigger = $.iconLabel.fireEvent;
exports.fireEvent = $.iconLabel.fireEvent;
exports.fireEvent = $.iconLabel.fireEvent;

0 comments on commit 0112a6c

Please sign in to comment.