aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-06-13 08:00:45 -0400
committerScott González <scott.gonzalez@gmail.com>2012-06-13 08:00:45 -0400
commit9608e981498846b3727cc4dad723a7fa7252fd86 (patch)
tree591ab885bf28ef77be87b2121fe9ecb461e7358f /tests
parente8b623207abcae500ffb3860378543906cd4e2b2 (diff)
downloadjquery-ui-9608e981498846b3727cc4dad723a7fa7252fd86.tar.gz
jquery-ui-9608e981498846b3727cc4dad723a7fa7252fd86.zip
Widget: Rename _bind() to _on(). Partial fix for #7795 - Widget: _on and _off.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/widget/widget_core.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js
index aa70e2425..3dfaf1918 100644
--- a/tests/unit/widget/widget_core.js
+++ b/tests/unit/widget/widget_core.js
@@ -610,13 +610,13 @@ test( ".widget() - overriden", function() {
deepEqual( wrapper[0], $( "<div>" ).testWidget().testWidget( "widget" )[0] );
});
-test( "._bind() to element (default)", function() {
+test( "._on() to element (default)", function() {
expect( 12 );
var that, widget;
$.widget( "ui.testWidget", {
_create: function() {
that = this;
- this._bind({
+ this._on({
keyup: this.keyup,
keydown: "keydown"
});
@@ -650,13 +650,13 @@ test( "._bind() to element (default)", function() {
.trigger( "keydown" );
});
-test( "._bind() to descendent", function() {
+test( "._on() to descendent", function() {
expect( 12 );
var that, widget, descendant;
$.widget( "ui.testWidget", {
_create: function() {
that = this;
- this._bind( this.element.find( "strong" ), {
+ this._on( this.element.find( "strong" ), {
keyup: this.keyup,
keydown: "keydown"
});
@@ -707,7 +707,7 @@ test( "._bind() to descendent", function() {
.trigger( "keydown" );
});
-test( "_bind() with delegate", function() {
+test( "_on() with delegate", function() {
expect( 8 );
$.widget( "ui.testWidget", {
_create: function() {
@@ -727,7 +727,7 @@ test( "_bind() with delegate", function() {
}
};
};
- this._bind({
+ this._on({
"click": "handler",
"click a": "handler"
});
@@ -740,7 +740,7 @@ test( "_bind() with delegate", function() {
}
};
};
- this._bind({
+ this._on({
"change form fieldset > input": "handler"
});
}