Skip to content

Commit

Permalink
Merge branch 'bbox-event' of https://github.com/tthmok/scenejs into t…
Browse files Browse the repository at this point in the history
…thmok-bbox-event
  • Loading branch information
xeolabs committed Feb 21, 2011
2 parents 9ef3566 + 23bf13f commit 1ed6cea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scenejs/boundary/boundingBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ SceneJS.BoundingBox.STATE_INTERSECTING_FRUSTUM = "visible";

// @private
SceneJS.BoundingBox.prototype._changeState = function(newState, params) {
var oldState = this._state;
this._state = newState;
if (this._listeners["state-changed"]) {
params = params || {};
params.oldState = this._state;
params.oldState = oldState;
params.newState = newState;
this._fireEvent("state-changed", params);
}
Expand Down

0 comments on commit 1ed6cea

Please sign in to comment.