r2995 commited - Dev widget factory: Pull event prefix from prototype.
Revision: 2995
Author: scott.gonzalez
Date: Mon Jul 27 19:19:47 2009
Log: Dev widget factory: Pull event prefix from prototype.
http://code.google.com/p/jquery-ui/source/detail?r=2995
Modified:
/branches/dev/widget-factory/ui/ui.core.js
=======================================
--- /branches/dev/widget-factory/ui/ui.core.js Sun Jul 26 16:43:28 2009
+++ /branches/dev/widget-factory/ui/ui.core.js Mon Jul 27 19:19:47 2009
@@ -239,7 +239,7 @@
$[namespace][name].prototype = $.extend(new base(), {
namespace: namespace,
widgetName: name,
- widgetEventPrefix: $[namespace][name].eventPrefix || name,
+ widgetEventPrefix: $[namespace][name].prototype.widgetEventPrefix ||
name,
widgetBaseClass: fullName
}, prototype);