Minor cleaning
parent
9abe7ef321
commit
6ab68eb6e2
|
@ -19,6 +19,9 @@ H5P.ActionBar = (function ($, EventDispatcher) {
|
||||||
* @param {string} customClass Instead of type class
|
* @param {string} customClass Instead of type class
|
||||||
*/
|
*/
|
||||||
var addActionButton = function (type, customClass) {
|
var addActionButton = function (type, customClass) {
|
||||||
|
/**
|
||||||
|
* Handles selection of action
|
||||||
|
*/
|
||||||
var handler = function () {
|
var handler = function () {
|
||||||
self.trigger(type);
|
self.trigger(type);
|
||||||
};
|
};
|
||||||
|
@ -78,8 +81,8 @@ H5P.ActionBar = (function ($, EventDispatcher) {
|
||||||
*/
|
*/
|
||||||
self.hasActions = function () {
|
self.hasActions = function () {
|
||||||
return hasActions;
|
return hasActions;
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
ActionBar.prototype = Object.create(EventDispatcher.prototype);
|
ActionBar.prototype = Object.create(EventDispatcher.prototype);
|
||||||
ActionBar.prototype.constructor = ActionBar;
|
ActionBar.prototype.constructor = ActionBar;
|
||||||
|
|
Loading…
Reference in New Issue