Skip to content

Commit

Permalink
trying to make a pressComposer without removing events fixes ProjetDe…
Browse files Browse the repository at this point in the history
  • Loading branch information
cesine committed Feb 10, 2014
1 parent ef86d7e commit fa19b22
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions OPrime-HTML5/montage-client/core/abstract-stimulus.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,18 @@ exports.AbstractStimulus = Component.specialize( /** @lends Stimulus# */ {
}
},

handleAction: {
value: function(e) {
console.log("The stimulus has been actioned: ");
this.handlePress(e);
}
},

prepareForActivationEvents: {
value: function() {
// this._pressComposer.addEventListener("pressStart", this, false);
// this._pressComposer.addEventListener("press", this, false);
// this._pressComposer.addEventListener("pressCancel", this, false);
this._pressComposer.addEventListener("pressStart", this, false);
this._pressComposer.addEventListener("press", this, false);
this._pressComposer.addEventListener("pressCancel", this, false);
}
},

Expand All @@ -180,9 +187,9 @@ exports.AbstractStimulus = Component.specialize( /** @lends Stimulus# */ {
// // this.classList.add("digit-Video--firstPlay");
// // this.classList.remove("digit-Video--showControls");

// this._pressComposer = PressComposer.create();
// this._pressComposer.identifier = "stimulus";
// this.addComposerForElement(this._pressComposer, this.element);
this._pressComposer = PressComposer.create();
this._pressComposer.identifier = "stimulus";
this.addComposerForElement(this._pressComposer, this.element);
// this.showPoster();


Expand Down

0 comments on commit fa19b22

Please sign in to comment.