[Commits] r751 - in sandbox/elemoine/playground/geoext: examples lib/GeoExt/widgets
commits at geoext.org
commits at geoext.org
Fri May 15 10:49:11 CEST 2009
Author: elemoine
Date: 2009-05-15 10:49:11 +0200 (Fri, 15 May 2009)
New Revision: 751
Modified:
sandbox/elemoine/playground/geoext/examples/toolbar.js
sandbox/elemoine/playground/geoext/lib/GeoExt/widgets/Action.js
Log:
GeoExt.Action.wrapControl is now GeoExt.Action.fromControl
Modified: sandbox/elemoine/playground/geoext/examples/toolbar.js
===================================================================
--- sandbox/elemoine/playground/geoext/examples/toolbar.js 2009-05-15 08:46:24 UTC (rev 750)
+++ sandbox/elemoine/playground/geoext/examples/toolbar.js 2009-05-15 08:49:11 UTC (rev 751)
@@ -15,7 +15,7 @@
ctrl = new OpenLayers.Control.ZoomToMaxExtent();
map.addControl(ctrl);
toolbarItems.push(
- GeoExt.Action.wrapControl(ctrl, {
+ GeoExt.Action.fromControl(ctrl, {
text: "max extent"
})
);
@@ -25,7 +25,7 @@
ctrl = new OpenLayers.Control.Navigation();
map.addControl(ctrl);
toolbarItems.push(
- GeoExt.Action.wrapControl(ctrl, {
+ GeoExt.Action.fromControl(ctrl, {
text: "nav",
// button options
toggleGroup: "draw",
@@ -41,7 +41,7 @@
);
map.addControl(ctrl);
toolbarItems.push(
- GeoExt.Action.wrapControl(ctrl, {
+ GeoExt.Action.fromControl(ctrl, {
text: "draw poly",
// button options
toggleGroup: "draw",
@@ -55,7 +55,7 @@
);
map.addControl(ctrl);
toolbarItems.push(
- GeoExt.Action.wrapControl(ctrl, {
+ GeoExt.Action.fromControl(ctrl, {
text: "draw line",
// button options
toggleGroup: "draw",
@@ -72,7 +72,7 @@
});
map.addControl(ctrl);
toolbarItems.push(
- GeoExt.Action.wrapControl(ctrl, {
+ GeoExt.Action.fromControl(ctrl, {
text: "select",
// button options
enableToggle: true
Modified: sandbox/elemoine/playground/geoext/lib/GeoExt/widgets/Action.js
===================================================================
--- sandbox/elemoine/playground/geoext/lib/GeoExt/widgets/Action.js 2009-05-15 08:46:24 UTC (rev 750)
+++ sandbox/elemoine/playground/geoext/lib/GeoExt/widgets/Action.js 2009-05-15 08:49:11 UTC (rev 751)
@@ -141,7 +141,7 @@
}
});
-GeoExt.Action.wrapControl = function(control, cfg) {
+GeoExt.Action.fromControl = function(control, cfg) {
cfg = cfg || {};
if(cfg instanceof Ext.Action) {
cfg = cfg.initialConfig;
More information about the Commits
mailing list