Mercurial > hg > digilib-old
changeset 790:baa98b639126 jquery
put plugins reference into plugin object. put geom into fn object for plugins.
author | robcast |
---|---|
date | Fri, 18 Feb 2011 09:44:42 +0100 |
parents | 61e4e5d679ba |
children | 304488c72344 |
files | client/digitallibrary/jquery/jquery.digilib.js |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery.digilib.js Thu Feb 17 23:50:53 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.js Fri Feb 18 09:44:42 2011 +0100 @@ -266,6 +266,7 @@ // import geometry classes if (plugins.geometry == null) { $.error("jquery.digilib.geometry plugin not found!"); + // last straw: old version geom = dlGeometry(); } else { geom = plugins.geometry.init(); @@ -323,6 +324,7 @@ $elem : $elem, settings : elemSettings, queryParams : params, + // TODO: move plugins reference out of data plugins : plugins }; // store in data element @@ -360,6 +362,7 @@ p.buttons = buttons; p.actions = actions; p.fn = fn; + p.plugins = plugins; // and init p.init(data); } @@ -1777,6 +1780,7 @@ // functions to export to plugins fn = { + geom : geom, parseQueryString : parseQueryString, getScalerUrl : getScalerUrl, getParamString : getParamString,