Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
Rename internalFire to fire
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed Nov 7, 2013
1 parent 0c8093f commit 1f4c1b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bespoke-convenient.js
Expand Up @@ -33,13 +33,13 @@

// TODO: create a second object bound to both this external object and the deck,
// to avoid passing the deck parameter every time. (Which can be alleviated with simpler function binding though.)
internalFire = function(deck, eventName, innerEvent, index, customData) {
return deck.fire(eventInNamespace(eventName), deck.createEventData(eventNamespace, eventName, innerEvent, index, customData));
fire = function(deck, eventName, innerEvent, slide, customData) {
return deck.fire(eventInNamespace(eventName), deck.createEventData(eventNamespace, eventName, innerEvent, slide, customData));
},

init = function() {
external.generateErrorObject = generateErrorObject.bind(this);
external.internalFire = internalFire.bind(this);
external.fire = fire.bind(this);
};

init();
Expand Down

0 comments on commit 1f4c1b9

Please sign in to comment.