Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only call the orginal method once

  • Loading branch information...
commit ad1b2ad7e9e8335fe9a926efdccab2bd3456df3e 1 parent 3eb6869
@raymondfeng authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/model.js
View
2  lib/model.js
@@ -260,7 +260,7 @@ function stillConnecting(schema, obj, args) {
if (schema.connected) return false;
if (schema.connecting) return true;
var method = args.callee;
- schema.on('connected', function () {
+ schema.once('connected', function () {
method.apply(obj, [].slice.call(args));
});
schema.connect();
Please sign in to comment.
Something went wrong with that request. Please try again.