Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function () {
  2.     'use strict';
  3.     window.qd = window.qd ? window.qd : function () {
  4.         if (!window.qd.q) {
  5.             window.qd.q = [];
  6.             Object.defineProperty(window.qd.q, 'push', {
  7.                 configurable: false,
  8.                 enumerable: false, // hide from for...in
  9.                 writable: false,
  10.                 value: function () {
  11.                     for (var i = 0, n = this.length, l = arguments.length; i < l; i++, n++) {
  12.                         this[n] = arguments[i];
  13.                         /*<DEBUG>*/
  14.                         Quantdeck.log(this);
  15.                         Quantdeck.log(this[n]);
  16.                         /*</DEBUG>*/
  17.                     }
  18.                     return n;
  19.                 }
  20.             });
  21.         }
  22.         window.qd.q.push(arguments);
  23.     };
  24. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement