Sha256: 16a839034dee9d70b24d0ca935589f654fc01d8530859da6c453e5f78cf5f44f
Contents?: true
Size: 479 Bytes
Versions: 69
Compression:
Stored size: 479 Bytes
Contents
define(['./functions', '../function/bind', '../array/forEach', '../array/slice'], function (functions, bind, forEach, slice) { /** * Binds methods of the object to be run in it's own context. */ function bindAll(obj, rest_methodNames){ var keys = arguments.length > 1? slice(arguments, 1) : functions(obj); forEach(keys, function(key){ obj[key] = bind(obj[key], obj); }); } return bindAll; });
Version data entries
69 entries across 69 versions & 2 rubygems