Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added tests for the latest version of jQuery (currently 1.7.1). #4

Open
wants to merge 1 commit into from

2 participants

@studgeek

Added tests for the latest version of jQuery (currently 1.7.1).
Also updated doc to show that it works for 1.7.1 and Firefox 10.

@studgeek studgeek Added tests for the latest version of jQuery (currently 1.7.1).
Updated doc to show that it works for 1.7.1 and Firefox 10.
77c0564
@ova2

Hi,

This is not working with jQuery 1.7.2

$(document).on("resize", ".selector", function(e) {
// do something
});

Any idea? I would like to use .live() to be able to use AJAX updates. .live() is deprecated, so that I tried with .on(), but it doesn't work.

Thanks in advance for any tip.

@ova2

Firebug shows JS Error: "TypeError is undefined"
Line: data.w = w !== undefined ? w : elem.width();

@ova2

Sorry. "TypeError, data is undefined"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 3, 2012
  1. @studgeek

    Added tests for the latest version of jQuery (currently 1.7.1).

    studgeek authored
    Updated doc to show that it works for 1.7.1 and Firefox 10.
This page is out of date. Refresh to see the latest.
Showing with 77 additions and 30 deletions.
  1. +2 −2 README.markdown
  2. +46 −28 unit/index.html
  3. +29 −0 unit/jquery-1.4.2.html
View
4 README.markdown 100644 → 100755
@@ -26,10 +26,10 @@ tested with, what browsers it has been tested in, and where the unit tests
reside (so you can test it yourself).
### jQuery Versions ###
-1.3.2, 1.4.1, 1.4.2
+1.3.2, 1.4.1, 1.4.2, 1.7.1
### Browsers Tested ###
-Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.1.
+Internet Explorer 6-8, Firefox 2-10, Safari 3-4, Chrome, Opera 9.6-10.1.
### Unit Tests ###
[http://benalman.com/code/projects/jquery-resize/unit/](http://benalman.com/code/projects/jquery-resize/unit/)
View
74 unit/index.html 100644 → 100755
@@ -1,29 +1,47 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>jQuery resize event - Unit Tests</title>
- <link rel="stylesheet" href="qunit.css" type="text/css" media="screen">
- <script type="text/javascript" src="../shared/qunit.js"></script>
+# jQuery resize event #
+[http://benalman.com/projects/jquery-resize-plugin/](http://benalman.com/projects/jquery-resize-plugin/)
+
+Version: 1.1, Last updated: 3/14/2010
+
+With jQuery resize event, you can bind resize event handlers to elements other than window, for super-awesome-resizing-greatness!
+
+Note that while this plugin works in jQuery 1.3.2, if an element's event callbacks are manually triggered via .trigger( 'resize' ) or .resize() those callbacks may double-fire, due to limitations in the jQuery 1.3.2 special events system. This is not an issue when using jQuery 1.4+.
- <script type="text/javascript" src="../shared/jquery-1.4.2.js"></script>
-
- <script type="text/javascript" src="../jquery.ba-resize.js"></script>
- <script type="text/javascript" src="unit.js"></script>
-</head>
-<body>
- <div id="qunit-header">
- <h1>jQuery resize event - Unit Tests</h1>
- <small><a href="http://benalman.com/projects/jquery-resize-plugin/">Project Home</a></small>
- <div style="clear:both"></div>
- </div>
- <h2 id="qunit-banner"><span></span></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <p>
- These unit tests include jQuery <span id="jq_version">...</span>. To view the unit tests using
- jQuery 1.4.1, <a href="./jquery-1.4.1.html">click here</a>, and to view the unit tests using
- jQuery 1.3.2, <a href="./jquery-1.3.2.html">click here</a>.
- </p>
- <ol id="qunit-tests"></ol>
-</body>
-</html>
+Visit the [project page](http://benalman.com/projects/jquery-resize-plugin/) for more information and usage examples!
+
+
+## Documentation ##
+[http://benalman.com/code/projects/jquery-resize/docs/](http://benalman.com/code/projects/jquery-resize/docs/)
+
+
+## Examples ##
+This working example, complete with fully commented code, illustrates a few
+ways in which this plugin can be used.
+
+[http://benalman.com/code/projects/jquery-resize/examples/resize/](http://benalman.com/code/projects/jquery-resize/examples/resize/)
+
+## Support and Testing ##
+Information about what version or versions of jQuery this plugin has been
+tested with, what browsers it has been tested in, and where the unit tests
+reside (so you can test it yourself).
+
+### jQuery Versions ###
+1.3.2, 1.4.1, 1.4.2, 1.7.1
+
+### Browsers Tested ###
+Internet Explorer 6-8, Firefox 2-10, Safari 3-4, Chrome, Opera 9.6-10.1.
+
+### Unit Tests ###
+[http://benalman.com/code/projects/jquery-resize/unit/](http://benalman.com/code/projects/jquery-resize/unit/)
+
+
+## Release History ##
+
+1.1 - (3/14/2010) Fixed a minor bug that was causing the event to trigger immediately after bind in some circumstances. Also changed $.fn.data to $.data to improve performance.
+1.0 - (2/10/2010) Initial release
+
+
+## License ##
+Copyright (c) 2010 "Cowboy" Ben Alman
+Dual licensed under the MIT and GPL licenses.
+[http://benalman.com/about/license/](http://benalman.com/about/license/)
View
29 unit/jquery-1.4.2.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>jQuery resize event - Unit Tests</title>
+ <link rel="stylesheet" href="qunit.css" type="text/css" media="screen">
+ <script type="text/javascript" src="../shared/qunit.js"></script>
+
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+
+ <script type="text/javascript" src="../jquery.ba-resize.js"></script>
+ <script type="text/javascript" src="unit.js"></script>
+</head>
+<body>
+ <div id="qunit-header">
+ <h1>jQuery resize event - Unit Tests</h1>
+ <small><a href="http://benalman.com/projects/jquery-resize-plugin/">Project Home</a></small>
+ <div style="clear:both"></div>
+ </div>
+ <h2 id="qunit-banner"><span></span></h2>
+ <div id="qunit-testrunner-toolbar"></div>
+ <h2 id="qunit-userAgent"></h2>
+ <p>
+ These unit tests include jQuery <span id="jq_version">...</span>. To view the unit tests using
+ jQuery 1.4.1, <a href="./jquery-1.4.1.html">click here</a>, and to view the unit tests using
+ jQuery 1.3.2, <a href="./jquery-1.3.2.html">click here</a>.
+ </p>
+ <ol id="qunit-tests"></ol>
+</body>
+</html>
Something went wrong with that request. Please try again.