Skip to content

Commit

Permalink
readying 0.5
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.danwebb.net/external/lowpro/trunk@325 a686c101-5f17-0410-80e1-b267258107f6
  • Loading branch information
danwebb committed Dec 11, 2007
1 parent b656a21 commit 3b2642b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions dist/README
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ Licence: MIT

Low Pro is a small JavaScript library built as an extension to Prototype that makes unobtrusive DOM scripting much easier. Here's a rundown of the functionality:

* Extended DOM Methods and DOM Builder
* Prettier DOM Builder that wraps Prototype's new Element
* Event.onReady() - add callbacks that execute as soon as the DOM is ready (now delegates to prototypes built in support for backward compatibility).
* Event.addBehavior() - add behaviors to elements declaratively using CSS selectors.
* Behavior object binding - If you prefer a more OO approach to behaviors Behavior.create() will create a behavior class that you can bind to elements.

Compatible with Prototype 1.6
Tested in: Firefox 1.5 (PC/Mac), Safari 2, IE 6+, Opera 9 (PC/Mac)

Please mail any feedback to dan@danwebb.net

MUST BE USED WITH PROTOTYPE 1.6 OR ABOVE


Acknowledgments / Credits
-------------------------

This library is based on the work of many great JavaScript programmers:

Dean Edwards, John Resig and Matthias Miller: dom ready work and Dean's addEvent.
Justin Palmer: event:Selectors which is the basis for addBehavior.

Cheers!
6 changes: 3 additions & 3 deletions dist/lowpro.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
LowPro = {};
LowPro.Version = '0.5';
LowPro.CompatibleWithPrototype = '1.6.0';
LowPro.CompatibleWithPrototype = '1.6';

if (Prototype.Version != LowPro.CompatibleWithPrototype && console && console.warn)
if (Prototype.Version.indexOf(LowPro.CompatibleWithPrototype) == 0 && console && console.warn)
console.warn("This version of Low Pro is tested with Prototype " + LowPro.CompatibleWithPrototype +
" it may not work as expected with this version (" + Prototype.Version + ")");

Expand Down Expand Up @@ -119,7 +119,7 @@ Object.extend(Event.addBehavior, {
var observer = rules[selector];
var sels = selector.split(',');
sels.each(function(sel) {
var parts = sel.split(/:(?=[a-z:]+$)/), css = parts.shift(), event = parts.join(':');
var parts = sel.split(/:(?=[a-z]+$)/), css = parts[0], event = parts[1];
$$(css).each(function(element) {
if (event) {
observer = Event.addBehavior._wrapObserver(observer);
Expand Down
Binary file modified dist/lowpro.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions doc/README
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ Licence: MIT

Low Pro is a small JavaScript library built as an extension to Prototype that makes unobtrusive DOM scripting much easier. Here's a rundown of the functionality:

* Extended DOM Methods and DOM Builder
* Prettier DOM Builder that wraps Prototype's new Element
* Event.onReady() - add callbacks that execute as soon as the DOM is ready (now delegates to prototypes built in support for backward compatibility).
* Event.addBehavior() - add behaviors to elements declaratively using CSS selectors.
* Behavior object binding - If you prefer a more OO approach to behaviors Behavior.create() will create a behavior class that you can bind to elements.

Compatible with Prototype 1.6
Tested in: Firefox 1.5 (PC/Mac), Safari 2, IE 6+, Opera 9 (PC/Mac)

Please mail any feedback to dan@danwebb.net

MUST BE USED WITH PROTOTYPE 1.6 OR ABOVE


Acknowledgments / Credits
-------------------------

This library is based on the work of many great JavaScript programmers:

Dean Edwards, John Resig and Matthias Miller: dom ready work and Dean's addEvent.
Justin Palmer: event:Selectors which is the basis for addBehavior.

Cheers!
2 changes: 1 addition & 1 deletion src/behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Object.extend(Event.addBehavior, {
var observer = rules[selector];
var sels = selector.split(',');
sels.each(function(sel) {
var parts = sel.split(/:(?=[a-z:]+$)/), css = parts.shift(), event = parts.join(':');
var parts = sel.split(/:(?=[a-z]+$)/), css = parts[0], event = parts[1];
$$(css).each(function(element) {
if (event) {
observer = Event.addBehavior._wrapObserver(observer);
Expand Down
4 changes: 2 additions & 2 deletions src/lowpro.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
LowPro = {};
LowPro.Version = '0.5';
LowPro.CompatibleWithPrototype = '1.6.0';
LowPro.CompatibleWithPrototype = '1.6';

if (Prototype.Version != LowPro.CompatibleWithPrototype && console && console.warn)
if (Prototype.Version.indexOf(LowPro.CompatibleWithPrototype) == 0 && console && console.warn)
console.warn("This version of Low Pro is tested with Prototype " + LowPro.CompatibleWithPrototype +
" it may not work as expected with this version (" + Prototype.Version + ")");

Expand Down

0 comments on commit 3b2642b

Please sign in to comment.