[Pkg-javascript-commits] [sockjs-client] 94/350: Fix casing
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:03:46 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 40d5294e630d6ed4ec8df3c3ed2025375267cf30
Author: Bryce Kahle <bkahle at gmail.com>
Date: Wed Oct 8 00:44:36 2014 -0400
Fix casing
---
lib/iframe-bootstrap.js | 12 +++++++-----
lib/utils.js | 2 +-
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/lib/iframe-bootstrap.js b/lib/iframe-bootstrap.js
index 9e49649..b498513 100644
--- a/lib/iframe-bootstrap.js
+++ b/lib/iframe-bootstrap.js
@@ -6,24 +6,26 @@ var utils = require('./utils')
;
module.exports = function (SockJS) {
+ /* eslint-disable camelcase */
SockJS.bootstrap_iframe = function() {
+ /* eslint-enable camelcase */
var facade;
- utils.curr_window_id = global.location.hash.slice(1);
+ utils.currentWindowId = global.location.hash.slice(1);
var onMessage = function(e) {
if (e.source !== parent) {
return;
}
- if (typeof utils.parent_origin === 'undefined') {
- utils.parent_origin = e.origin;
+ if (typeof utils.parentOrigin === 'undefined') {
+ utils.parentOrigin = e.origin;
}
- if (e.origin !== utils.parent_origin) {
+ if (e.origin !== utils.parentOrigin) {
return;
}
var windowId = e.data.slice(0, 8);
var type = e.data.slice(8, 9);
var data = e.data.slice(9);
- if (windowId !== utils.curr_window_id) {
+ if (windowId !== utils.currentWindowId) {
return;
}
switch(type) {
diff --git a/lib/utils.js b/lib/utils.js
index c791c04..8646a08 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -539,7 +539,7 @@ utils.createHtmlfile = function (iframeUrl, errorCallback) {
// curr_window_id comes from SockJS.bootstrap_iframe()
utils.postMessage = function (type, data) {
if (parent !== window) {
- parent.postMessage(utils.curr_window_id + type + (data || ''), '*');
+ parent.postMessage(utils.currentWindowId + type + (data || ''), '*');
} else {
utils.log("Can't postMessage, no parent window.", type, data);
}
--
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