Commits

Mark Lavin committed a1d04bb

Fix assign vs apply.

  • Participants
  • Parent commits 8de1853

Comments (0)

Files changed (1)

File selectable/static/selectable/js/jquery.dj.selectable.js

                 var now = new Date().getTime();
                 var query = {term: request.term, timestamp: now};
                 if (self.options.prepareQuery) {
-                    self.options.prepareQuery.assign(self, [query]);
+                    self.options.prepareQuery.apply(self, [query]);
                 }
                 var page = $(input).data("page");
                 if (page) {
                 highlights term matches and handles pagination. */
                 var label = item.label;
                 if (self.options.formatLabel) {
-                    label = self.options.formatLabel.assign(self, [label, item]);
+                    label = self.options.formatLabel.apply(self, [label, item]);
                 }
                 if (self.options.highlightMatch && this.term) {
                     var re = new RegExp("(?![^&;]+;)(?!<[^<>]*)(" +