Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 2f352b9

Browse files
committed
A few fixes after the change in serialization library
1 parent 43d0ebb commit 2f352b9

File tree

4 files changed

+4
-52
lines changed

4 files changed

+4
-52
lines changed

CodeHub.iOS/Setup.cs

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using MonoTouch.Dialog;
1515
using CodeFramework.iOS.Views;
1616
using MonoTouch.UIKit;
17+
using CodeFramework.iOS.Bindings;
1718

1819
namespace CodeHub.iOS
1920
{
@@ -99,53 +100,4 @@ protected override IMvxApplication CreateApp()
99100
return new Core.App();
100101
}
101102
}
102-
103-
public class UISegmentControlBinding : Cirrious.MvvmCross.Binding.Bindings.Target.MvxTargetBinding
104-
{
105-
private readonly UISegmentedControl _ctrl;
106-
107-
public UISegmentControlBinding(UISegmentedControl ctrl)
108-
: base(ctrl)
109-
{
110-
this._ctrl = ctrl;
111-
}
112-
113-
public override void SetValue(object value)
114-
{
115-
_ctrl.SelectedSegment = (int)value;
116-
}
117-
public override void SubscribeToEvents()
118-
{
119-
_ctrl.ValueChanged += HandleValueChanged;
120-
}
121-
122-
void HandleValueChanged (object sender, EventArgs e)
123-
{
124-
FireValueChanged(_ctrl.SelectedSegment);
125-
}
126-
127-
public override Type TargetType
128-
{
129-
get
130-
{
131-
return typeof(int);
132-
}
133-
}
134-
public override Cirrious.MvvmCross.Binding.MvxBindingMode DefaultMode
135-
{
136-
get
137-
{
138-
return Cirrious.MvvmCross.Binding.MvxBindingMode.TwoWay;
139-
}
140-
}
141-
142-
protected override void Dispose(bool isDisposing)
143-
{
144-
if (isDisposing)
145-
{
146-
_ctrl.ValueChanged -= HandleValueChanged;
147-
}
148-
base.Dispose(isDisposing);
149-
}
150-
}
151103
}

CodeHub.iOS/WebCell/comments.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
while (temp.firstChild) { frag.appendChild(temp.firstChild); } return frag;
77
}
88
function addComment(data) {
9-
var html = "<div class='comment'><img src='" + data.avatarUrl + "'><div><h1>" + data.login + "</h1><span>" + data.updated_at + "</span><div class='mark'>" + data.body + "</div></div></div>";
9+
var html = "<div class='comment'><img src='" + data.avatar_url + "'><div><h1>" + data.login + "</h1><span>" + data.updated_at + "</span><div class='mark'>" + data.body + "</div></div></div>";
1010
document.getElementById('main').appendChild(create(html));
1111
}
1212
function size() { return document.getElementById('main').scrollHeight + 20; }

lib/GitHubSharp

0 commit comments

Comments
 (0)