Last active
October 8, 2015 01:01
-
-
Save WebReflection/0e193457312b269ce1c4 to your computer and use it in GitHub Desktop.
Revisions
-
WebReflection revised this gist
Jun 22, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,4 +17,4 @@ var WeakMap = WeakMap || (function (s, dP, hOP) {'use strict'; } }; return WeakMap; }(Symbol('WeakMap'), Object.defineProperty, {}.hasOwnProperty)); -
WebReflection revised this gist
Jun 22, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ var WeakMap = WeakMap || (function (s, dP, hOP) {'use strict'; function WeakMap() { // by Andrea Giammarchi - WTFPL dP(this, s, {value: Symbol('WeakMap')}); } @@ -10,11 +10,11 @@ var WeakMap = WeakMap || (function (s, dP) {'use strict'; return o[this[s]]; }, has: function has(o) { return hOP.call(o, this[s]); }, set: function set(o, v) { dP(o, this[s], {configurable: true, value: v}); } }; return WeakMap; }(Symbol('WeakMap'), Object.defineProperty, Object.o.hasOwnProperty)); -
WebReflection revised this gist
Jun 22, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ var WeakMap = WeakMap || (function (s, dP) {'use strict'; return o[this[s]]; }, has: function has(o) { return o.hasOwnProperty(this[s]); }, set: function set(o, v) { dP(o, this[s], {configurable: true, value: v}); -
WebReflection revised this gist
Jun 22, 2015 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ var WeakMap = WeakMap || (function (s, dP) {'use strict'; function WeakMap() { // by Andrea Giammarchi - WTFPL dP(this, s, {value: Symbol('WeakMap')}); } WeakMap.prototype = { 'delete': function del(o) { @@ -13,8 +13,8 @@ var WeakMap = WeakMap || (function (s) {'use strict'; return -1 < Object.getOwnPropertySymbols(o).indexOf(this[s]); }, set: function set(o, v) { dP(o, this[s], {configurable: true, value: v}); } }; return WeakMap; }(Symbol('WeakMap'), Object.defineProperty)); -
WebReflection revised this gist
Jun 22, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ var WeakMap = WeakMap || (function (s) {'use strict'; function WeakMap() { // by Andrea Giammarchi - WTFPL Object.defineProperty(this, s, {value: Symbol('WeakMap')}); } WeakMap.prototype = { 'delete': function del(o) { @@ -13,7 +13,7 @@ var WeakMap = WeakMap || (function (s) {'use strict'; return -1 < Object.getOwnPropertySymbols(o).indexOf(this[s]); }, set: function set(o, v) { Object.defineProperty(o, this[s], {configurable: true, value: v}); } }; return WeakMap; -
WebReflection revised this gist
Apr 17, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var WeakMap = WeakMap || (function (s) {'use strict'; function WeakMap() { // by Andrea Giammarchi - WTFPL this[s] = Symbol('WeakMap'); } WeakMap.prototype = { 'delete': function del(o) { delete o[this[s]]; }, -
WebReflection revised this gist
Apr 17, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var WeakMap = WeakMap || (function (s) {'use strict'; function WeakMap() { // by Andrea Giammarchi - WTFPL this[s] = Symbol('WeakMap'); } WeakMap.prototype = { // constructor: WeakMap, 'delete': function del(o) { delete o[this[s]]; }, -
WebReflection revised this gist
Apr 17, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,8 @@ var WeakMap = WeakMap || (function (s) {'use strict'; function WeakMap() { // by Andrea Giammarchi - WTFPL this[s] = Symbol('WeakMap'); } WeakMap.prototype = {constructor: WeakMap, 'delete': function del(o) { delete o[this[s]]; }, get: function get(o) { -
WebReflection revised this gist
Apr 17, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ var WeakMap = WeakMap || (function (s) {'use strict'; function WeakMap() { // by Andrea Giammarchi - WTFPL this[s] = Symbol('WeakMap'); } WeakMap.prototype = { -
WebReflection revised this gist
Apr 17, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ var WeakMap = WeakMap || (function (s) {'use strict'; function WeakMap() { // by Andrea Giammarchi - MIT this[s] = Symbol('WeakMap'); } WeakMap.prototype = { -
WebReflection created this gist
Apr 17, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ var WeakMap = WeakMap || (function (s) {'use strict'; function WeakMap() { // by Andrea Giammarchi - WTFPL this[s] = Symbol('WeakMap'); } WeakMap.prototype = { 'delete': function (o) { delete o[this[s]]; }, get: function get(o) { return o[this[s]]; }, has: function has(o) { return -1 < Object.getOwnPropertySymbols(o).indexOf(this[s]); }, set: function set(o, v) { o[this[s]] = v; } }; return WeakMap; }(Symbol('WeakMap')));