Permalink
Browse files

Removed jQuery (and Prototype) dependence.

  • Loading branch information...
1 parent 816eee7 commit 184b6f529f3cacb83ff5c41fe7dc9331e7f842ea @xdissent committed Aug 23, 2010
Showing with 50 additions and 5,101 deletions.
  1. +4 −3 README.markdown
  2. +0 −2 demo.html
  3. +0 −154 lib/jquery-1.4.2.min.js
  4. +0 −26 lib/onresize.js
  5. +0 −4,874 lib/prototype.js
  6. +0 −17 lib/underscore-min.js
  7. +41 −18 raphael.shapes.js
  8. +5 −7 src/demo.js
View
@@ -1,4 +1,4 @@
-# Raphaël Shapes plugin - 0.0.2
+# Raphaël Shapes plugin - 0.0.2-xdissent
### What is it?
An extension to the Raphael Vector Library.<br/>
@@ -7,6 +7,9 @@ Currently it provides the following shapes:<br/>
- n-gon<br/>
- star
+### What's different?
+This version of the shapes extension does not rely on any external libraries (except Raphael).
+
### Usage
Basic usage:
@@ -58,11 +61,9 @@ Retrieve the settings of a shape
### Dependencies
- [Raphael JS](http://raphaeljs.com/)
-- [Prototype JS](http://prototypejs.org/)
### Important
- This plugin is still under development
-- It requires the Prototype JS library
### To-do
- writing tests
View
@@ -2,8 +2,6 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <script src="lib/underscore-min.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/raphael-min.js" type="text/javascript" charset="utf-8"></script>
<script src="raphael.shapes.js" type="text/javascript" charset="utf-8"></script>
<script src="src/demo.js" type="text/javascript" charset="utf-8"></script>
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,26 +0,0 @@
-/*
- * onResize 0.0.1 - Extension to Prototype JS
- *
- * Copyright (c) 2009 Wout Fierens
- * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
- */
-
-Object.extend(window, {
- fire: Element.Methods.fire.methodize(),
- observe: Element.Methods.observe.methodize(),
- stopObserving: Element.Methods.stopObserving.methodize()
-});
-
-(document.onresize ? document : window).observe("resize", function() {
- if (!document.viewport.is_resized) {
- document.viewport.is_resized = true;
- window.fire("resize:start");
- var resizeEnd;
- resizeEnd = (function() {
- document.viewport.is_resized = false;
- window.fire("resize:end");
- Event.stopObserving(document, "mousemove", resizeEnd);
- }).bind(this);
- document.observe("mousemove", resizeEnd);
- }
-});
Oops, something went wrong.

0 comments on commit 184b6f5

Please sign in to comment.