mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
EJSON: Remove serializeForEval method, no longer needed with new selector
compiler.
This commit is contained in:
@@ -10,8 +10,6 @@ var customTypes = {};
|
||||
// - A equals() method, so that Meteor can compare it
|
||||
// - A toJSONValue() method, so that Meteor can serialize it
|
||||
// - a typeName() method, to show how to look it up in our type table.
|
||||
// XXX GOING AWAY
|
||||
// - A serializeForEval() method, so that Meteor can compile it into selectors.
|
||||
// It is okay if these methods are monkey-patched on.
|
||||
EJSON.addType = function (name, factory) {
|
||||
if (_.has(customTypes, name))
|
||||
|
||||
@@ -52,11 +52,6 @@ LocalCollection._ObjectID.prototype.valueOf =
|
||||
LocalCollection._ObjectID.prototype.toHexString =
|
||||
function () { return this._str; };
|
||||
|
||||
LocalCollection._ObjectID.prototype.serializeForEval = function () {
|
||||
var self = this;
|
||||
return "new LocalCollection._ObjectID(\"" + self._str + "\")";
|
||||
};
|
||||
|
||||
// Is this selector just shorthand for lookup by _id?
|
||||
LocalCollection._selectorIsId = function (selector) {
|
||||
return (typeof selector === "string") ||
|
||||
|
||||
Reference in New Issue
Block a user