Issue Details (XML | Word | Printable)

Key: LEP-6428
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Nate Cavanaugh
Reporter: Nate Cavanaugh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)

Liferay Events system needs tweaking

Created: 25/Jun/08 01:07 PM   Updated: 25/Jun/08 01:19 PM
Return to search
Component/s: None
Affects Version/s: 5.0.1
Fix Version/s: 5.1.0

Time Tracking:
Not Specified


 Description  « Hide
The Liferay.Publisher object duplicates a lot of code and functionality that is already available. It's also not very intuitive to use.

Instead, the Liferay.Publisher object is being renamed to Liferay.Events, with shortcuts in the Liferay object itself, via Liferay.bind, Liferay.trigger, and Liferay.unbind.

The event callback API is mostly unchanged, except that the first parameter is always the event object (usable for accessing the event type, and other details), and the second parameter is whatever data is being passed in to the callback.

This allows us to more easily allow users to listen for events happening in the Liferay javascript, and perform actions when those events happen.

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
This list of changesets may be incomplete, as errors occured retrieving changesets from the following repositories:

       Repository plugins on http://svn.liferay.com.false/ failed: svn.liferay.com.false
       Repository portal on http://svn.liferay.com.false/ failed: svn.liferay.com.false

No related commits found.