[Pkg-javascript-commits] [sockjs-client] 172/350: Don't use this in iframe utils.
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:04:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit c8045e049e2ef38e501e3261e881ee732c4c069c
Author: Bryce Kahle <bkahle at gmail.com>
Date: Fri Oct 17 16:52:46 2014 -0400
Don't use this in iframe utils.
---
lib/utils/iframe.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/utils/iframe.js b/lib/utils/iframe.js
index 4f13ad7..6514eab 100644
--- a/lib/utils/iframe.js
+++ b/lib/utils/iframe.js
@@ -11,15 +11,15 @@ module.exports = {
, currentWindowId: null
, polluteGlobalNamespace: function() {
- if (!(this.WPrefix in global)) {
- global[this.WPrefix] = {};
+ if (!(module.exports.WPrefix in global)) {
+ global[module.exports.WPrefix] = {};
}
}
, postMessage: function (type, data) {
if (global.parent !== global) {
global.parent.postMessage(JSON3.stringify({
- windowId: this.currentWindowId
+ windowId: module.exports.currentWindowId
, type: type
, data: data || ''
}), '*');
@@ -144,7 +144,7 @@ module.exports = {
'document.domain="' + global.document.domain + '";' +
'</s' + 'cript></html>');
doc.close();
- doc.parentWindow[this.WPrefix] = global[this.WPrefix];
+ doc.parentWindow[module.exports.WPrefix] = global[module.exports.WPrefix];
var c = doc.createElement('div');
doc.body.appendChild(c);
iframe = doc.createElement('iframe');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list