Skip to content

Commit

Permalink
Merge pull request #2790 from bryan-m-hughes/timob-10291
Browse files Browse the repository at this point in the history
[TIMOB-10294] Changed all event names to lower case.
  • Loading branch information
cb1kenobi committed Aug 21, 2012
2 parents 2d8f983 + 14387c5 commit fb0ba93
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions mobileweb/titanium/Ti/Media/VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ define(["Ti/_/declare", "Ti/_/dom", "Ti/_/event", "Ti/_/lang", "Ti/Media", "Ti/U
_set: function(type, state) {
var evt = {};
evt[type] = this.constants[type] = state;
this.fireEvent(type === "loadState" ? type.toLowerCase() : type, evt);
this.fireEvent(type.toLowerCase(), evt);
},

_complete: function(evt) {
Expand All @@ -153,7 +153,7 @@ define(["Ti/_/declare", "Ti/_/dom", "Ti/_/event", "Ti/_/lang", "Ti/Media", "Ti/U
var d = this._video.duration * 1000,
c = this.constants;
if (d !== Infinity) {
this.duration || this.fireEvent("durationAvailable", {
this.duration || this.fireEvent("durationavailable", {
duration: d
});
c.duration = c.playableDuration = c.endPlaybackTime = d;
Expand Down
8 changes: 4 additions & 4 deletions mobileweb/titanium/Ti/UI/ScrollableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define(["Ti/_/browser", "Ti/_/declare", "Ti/_/UI/KineticScrollView", "Ti/_/lang"
this._showView(currentPage - 1);
this._showView(currentPage);
this._showView(currentPage + 1);
this.fireEvent("dragStart");
this.fireEvent("dragstart");
}
},

Expand Down Expand Up @@ -120,7 +120,7 @@ define(["Ti/_/browser", "Ti/_/declare", "Ti/_/UI/KineticScrollView", "Ti/_/lang"
destinationPosition = -destination._measuredLeft;

// Fire the drag end event
self.fireEvent("dragEnd", {
self.fireEvent("dragend", {
currentPage: destinationIndex,
view: destination
});
Expand All @@ -135,7 +135,7 @@ define(["Ti/_/browser", "Ti/_/declare", "Ti/_/UI/KineticScrollView", "Ti/_/lang"
self.properties.__values__.currentPage = destinationIndex;
self._showView(destinationIndex);
setTimeout(function(){
self.fireEvent("scrollEnd",{
self.fireEvent("scrollend",{
currentPage: destinationIndex,
view: destination
});
Expand Down Expand Up @@ -257,7 +257,7 @@ define(["Ti/_/browser", "Ti/_/declare", "Ti/_/UI/KineticScrollView", "Ti/_/lang"
self._removeViewFromList(self._viewToRemoveAfterScroll);
self._viewToRemoveAfterScroll = -1;
}
self.fireEvent("scrollEnd",{
self.fireEvent("scrollend",{
currentPage: viewIndex,
view: self.views[viewIndex]
});
Expand Down
6 changes: 3 additions & 3 deletions mobileweb/titanium/Ti/UI/TableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ define(["Ti/_/declare", "Ti/_/UI/KineticScrollView", "Ti/_/style", "Ti/_/lang",
},

_handleDragStart: function(e) {
this.fireEvent("dragStart");
this.fireEvent("dragstart");
},

_handleDrag: function(e) {
Expand All @@ -62,13 +62,13 @@ define(["Ti/_/declare", "Ti/_/UI/KineticScrollView", "Ti/_/style", "Ti/_/lang",
var distance = velocityY * velocityY / (1.724 * deceleration) * (velocityY < 0 ? -1 : 1),
duration = Math.abs(velocityY) / deceleration,
translation = Math.min(0, Math.max(self._minTranslationY, self._currentTranslationY + distance));
self.fireEvent("dragEnd",{
self.fireEvent("dragend",{
decelerate: true
});
self._animateToPosition(self._currentTranslationX, translation, duration, UI.ANIMATION_CURVE_EASE_OUT, function() {
self._setTranslation(self._currentTranslationX, translation);
self._endScrollBars();
self._fireScrollEvent("scrollEnd", e);
self._fireScrollEvent("scrollend", e);
});
}

Expand Down
2 changes: 1 addition & 1 deletion mobileweb/titanium/Ti/_/Map/Google.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ define(["Ti/_/declare", "Ti/_/dom", "Ti/_/event", "Ti/_/lang", "Ti/App/Propertie
this.fireEvent("complete");
}

this.fireEvent("regionChanged", region);
this.fireEvent("regionchanged", region);
},

_updateMap: function(region, dontAnimate) {
Expand Down

0 comments on commit fb0ba93

Please sign in to comment.