Permalink
Browse files

Timepicker: Use namespaced data property

  • Loading branch information...
1 parent 8edaf14 commit c0bb9bee4dad2b592d939fe7cc02821212dd3baf @jzaefferer jzaefferer committed Nov 18, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 tests/unit/timepicker/timepicker_events.js
  2. +2 −2 ui/jquery.ui.timepicker.js
@@ -7,7 +7,7 @@ test( "keydown: Up/Down/Left/Right behaviors", function() {
var i,
input = $( "#timepicker1" ).val( "12:00:00 PM" ).timepicker(),
- timepicker = input.data( "timepicker" ),
+ timepicker = input.data( "ui-timepicker" ),
mask = timepicker.mask;
mask._caret( 0, 0 );
@@ -43,7 +43,7 @@ test( "keydown: Up/Down/Left/Right behaviors", function() {
equal( input.val(), "11:50:00 AM", "After down keypress in am/pm field, value went to proper value" );
input.timepicker( "destroy" ).val( "23:00:00" ).timepicker({ ampm: false });
- timepicker = input.data( "timepicker" );
+ timepicker = input.data( "ui-timepicker" );
timepicker._setField( 0 );
equal( input.val(), "23:00:00", "Sanity Check" );
@@ -54,9 +54,9 @@ $.widget( "ui.timepicker", {
tt: $.proxy( this, "_validAmPm" )
}, maskDefinitions )
});
- this.mask = this.element.data( "mask" );
+ this.mask = this.element.data( "ui-mask" );
this.element.spinner();
- this.spinner = this.element.data( "spinner" );
+ this.spinner = this.element.data( "ui-spinner" );
$.extend( this.spinner, {
_parse: $.proxy( this, "_spinnerParse" ),
_value: $.proxy( this, "_spinnerValue" ),

0 comments on commit c0bb9be

Please sign in to comment.