MCPcopy Index your code
hub / github.com/sql-js/sql.js / addToWrapper

Function addToWrapper

documentation/javascript/application.js:11404–11410  ·  view source on GitHub ↗
(name, func)

Source from the content-addressed store, hash-verified

11402
11403 // A method to easily add functions to the OOP wrapper.
11404 var addToWrapper = function(name, func) {
11405 wrapper.prototype[name] = function() {
11406 var args = slice.call(arguments);
11407 unshift.call(args, this._wrapped);
11408 return result(func.apply(_, args), this._chain);
11409 };
11410 };
11411
11412 // Add all of the Underscore functions to the wrapper object.
11413 _.mixin(_);

Callers 1

application.jsFile · 0.85

Calls 1

resultFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…