Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bec4d51

Browse files
committed
Update in the namespaces
1 parent 5a1eda5 commit bec4d51

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

Samples/jQuery.UI.Sample/Draggable/DelayStart.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
//
66

77
using jQueryApi;
8+
using jQueryApi.UI;
89
using jQueryApi.UI.Interactions;
9-
using jQueryApi.UI.Utilities;
1010

1111
namespace Sample.Draggable
1212
{
@@ -30,4 +30,4 @@ static DelayStart()
3030
});
3131
}
3232
}
33-
}
33+
}

Samples/jQuery.UI.Sample/Draggable/DragHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
//
66

77
using jQueryApi;
8+
using jQueryApi.UI;
89
using jQueryApi.UI.Interactions;
9-
using jQueryApi.UI.Utilities;
1010

1111
namespace Sample.Draggable
1212
{

Samples/jQuery.UI.Sample/Draggable/DraggableSortable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
//
66

77
using jQueryApi;
8+
using jQueryApi.UI;
89
using jQueryApi.UI.Interactions;
9-
using jQueryApi.UI.Utilities;
1010

1111
namespace Sample.Draggable
1212
{

Samples/jQuery.UI.Sample/Position/Default.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
//
66

77
using jQueryApi;
8+
using jQueryApi.UI;
89
using jQueryApi.UI.Interactions;
9-
using jQueryApi.UI.Utilities;
1010

1111
namespace Sample.Position {
1212
internal static class Default {

Samples/jQuery.UI.Sample/Widget/ColorizeObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
using System;
88
using System.Runtime.CompilerServices;
9-
using jQueryApi.UI.Utilities;
9+
using jQueryApi.UI;
1010
using jQueryApi.UI.Widgets;
1111

1212
namespace Sample.Widget {

Samples/jQuery.UI.Sample/Widget/ColorizeOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66

77
using System.Runtime.CompilerServices;
8-
using jQueryApi.UI.Utilities;
8+
using jQueryApi.UI;
99

1010
namespace Sample.Widget {
1111
[Imported]

Samples/jQuery.UI.Sample/Widget/Default.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
using System;
88
using jQueryApi;
9-
using jQueryApi.UI.Utilities;
9+
using jQueryApi.UI;
1010
using jQueryApi.UI.Widgets;
1111

1212
namespace 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
));

Samples/jQuery.UI.Web/Scripts/jQuery.UI.Sample.debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,13 +986,13 @@ Sample.Widget._default.registerClass('Sample.Widget._default');
986986
this.changer.remove();
987987
this.element.removeClass('custom-colorize').enableSelection().css('background-color', 'transparent');
988988
}, _setOptions: function() {
989-
$.Widget.prototype._setOptions.apply(this, arguments);
989+
($.Widget.prototype)._setOptions.apply(this, arguments);
990990
this._refresh();
991991
}, _setOption: function(key, value) {
992992
if (new RegExp('red|green|blue').test(key) && (value < 0 || value > 255)) {
993993
return;
994994
}
995-
$.Widget.prototype._setOption.call(this, key, value);
995+
($.Widget.prototype)._setOption.call(this, key, value);
996996
} });
997997
$('#my-widget1').colorize();
998998
$('#my-widget2').colorize({ red: 60, blue: 60 });

Samples/jQuery.UI.Web/Scripts/jQuery.UI.Sample.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ if(($2_0.options).disabled){return;}$2_0.random.apply($2_0,arguments);});this._r
209209
this.element.css('background-color','rgb('+(this.options).red+','+(this.options).green+','+(this.options).blue+')');this._trigger('change');},random:function($p2_0){
210210
var $2_0={red:Math.floor(Math.random()*256),green:Math.floor(Math.random()*256),blue:Math.floor(Math.random()*256)};if(this._trigger('random',$p2_0,$2_0)){this.option($2_0);}},destroy:function(){
211211
this.changer.remove();this.element.removeClass('custom-colorize').enableSelection().css('background-color','transparent');},_setOptions:function(){
212-
$.Widget.prototype._setOptions.apply(this,arguments);this._refresh();},_setOption:function($p2_0,$p2_1){
213-
if(new RegExp('red|green|blue').test($p2_0)&&($p2_1<0||$p2_1>255)){return;}$.Widget.prototype._setOption.call(this,$p2_0,$p2_1);}});$('#my-widget1').colorize();$('#my-widget2').colorize({red:60,blue:60});$('#my-widget3').colorize({green:128,random:function($p2_0,$p2_1){
212+
($.Widget.prototype)._setOptions.apply(this,arguments);this._refresh();},_setOption:function($p2_0,$p2_1){
213+
if(new RegExp('red|green|blue').test($p2_0)&&($p2_1<0||$p2_1>255)){return;}($.Widget.prototype)._setOption.call(this,$p2_0,$p2_1);}});$('#my-widget1').colorize();$('#my-widget2').colorize({red:60,blue:60});$('#my-widget3').colorize({green:128,random:function($p2_0,$p2_1){
214214
return $p2_1.green>128;}});$('#disable').toggle(function($p2_0){
215215
$(':custom-colorize').colorize('disable');},function($p2_0){
216216
$(':custom-colorize').colorize('enable');});$('#black').click(function($p2_0){

0 commit comments

Comments
 (0)