Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make domready implicit

  • Loading branch information...
commit d40d435a647b10d74a791be68f7b89ebe2875910 1 parent c3a513f
@substack authored
Showing with 9 additions and 11 deletions.
  1. +5 −10 example/form/test.js
  2. +4 −1 proxy.js
View
15 example/form/test.js
@@ -16,20 +16,15 @@ domready(function () {
var bus = schoolbus(uri, function (win, $) {
log('href[0]=' + win.location.href);
- $(function () {
- var form = $('#form')[0];
- $('input[name=login]').val('testling');
- $('input[name=passw]').val('qwerty');
- $('#form').submit();
- });
+ var form = $('#form')[0];
+ $('input[name=login]').val('testling');
+ $('input[name=passw]').val('qwerty');
+ $('#form').submit();
}, { log : log });
bus.next(function (win, $) {
log('href[1]=' + win.location.href);
-
- $(function () {
- log($('#welcome p:first').text());
- });
+ log($('#welcome p:first').text());
});
bus.appendTo(document.body);
View
5 proxy.js
@@ -26,7 +26,10 @@ var client = proto(function (remote, conn) {
names.push(key);
args.push(vars[key]);
}
- Function(names, 'return ' + src).apply(null, args)(window, $);
+ $(function () {
+ var fn = Function(names, 'return ' + src);
+ fn.apply(null, args)(window, $);
+ });
};
}).create();
Please sign in to comment.
Something went wrong with that request. Please try again.