66
77using System ;
88using jQueryApi ;
9- using jQueryApi . UI . Utilities ;
9+ using jQueryApi . UI ;
1010using jQueryApi . UI . Widgets ;
1111
1212namespace Sample . Widget {
@@ -15,7 +15,7 @@ static Default() {
1515 jQuery . OnDocumentReady ( delegate ( ) {
1616 // the widget definition, where "custom" is the namespace,
1717 // "colorize" the widget name
18- jQueryUIWidget . Create ( "custom.colorize" ,
18+ jQueryUI . Create ( "custom.colorize" ,
1919 new WidgetOptions (
2020 // default options
2121 "options" , new ColorizeOptions (
@@ -115,7 +115,7 @@ static Default() {
115115 // always refresh when changing options
116116 WidgetMethod . SetOptions , new Action ( delegate ( ) {
117117 // in 1.9 would use _superApply( arguments)
118- WidgetObject . Prototype . SetOptions . Apply ( jQuery . Current , Arguments . Current ) ;
118+ ( ( WidgetObject ) WidgetObject . Prototype ) . SetOptions . Apply ( jQuery . Current , Arguments . Current ) ;
119119
120120 jQuery . Current
121121 . Plugin < ColorizeObject > ( )
@@ -129,7 +129,7 @@ static Default() {
129129 }
130130 // in 1.9 would use _super
131131 //$.Widget.prototype._setOption.call( this, key, value );
132- WidgetObject . Prototype . SetOption . Call ( jQuery . Current , key , value ) ;
132+ ( ( WidgetObject ) WidgetObject . Prototype ) . SetOption . Call ( jQuery . Current , key , value ) ;
133133 } )
134134
135135 ) ) ;
0 commit comments