apostrophecms-legacy / apostrophe-schemas

DEPRECATED - FOR APOSTROPHE 0.5 SITES ONLY - BUILT IN TO APOSTROPHE 2.X. Allows any object to have a schema of properties that can be edited in the browser, sanitized on the server and easily saved in Mongo. Schema types include text, select, tags, Apostrophe areas and singletons, and joins (one-to-one and many-to-many relationships), among others.
MIT License
3 stars 3 forks source link

Use of jQuery findSafe with only one argument has no benefit #16

Closed boutell closed 8 years ago

boutell commented 8 years ago

The code for minimizing arrays uses the jQuery findSafe plugin, which is great, but doesn't actually pass the guard argument that tells it where to stop delving.

The correct implementation would be to use self.findSafe instead, which knows what that argument is for our purposes. Check out other usages of it in schemas/editor.js