Commit 3009ecc4 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

initial for JS strict mode

parent c9a5e5aa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@
	} ?>

	<script type="text/javascript">
		'use strict';
		require({cache:{}});
	<?php
		require_once 'lib/jshrink/Minifier.php';
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ var PluginHost = {
		console.warn('PluginHost::run ' + name);

		if (typeof(this.hooks[name]) != 'undefined')
			for (i = 0; i < this.hooks[name].length; i++)
			for (var i = 0; i < this.hooks[name].length; i++)
				if (!this.hooks[name][i](args)) break;
	}
};
+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ function viewfeed(params) {
		window.open("backend.php" + query + "&debug=1&csrf_token=" + getInitParam("csrf_token"));
	}

	timeout_ms = can_wait ? 250 : 0;
	var timeout_ms = can_wait ? 250 : 0;
	_viewfeed_timeout = setTimeout(function() {

		new Ajax.Request("backend.php", {
+1 −1
Original line number Diff line number Diff line
@@ -1117,7 +1117,7 @@ function backend_sanity_check_callback(transport) {
	if (params) {
		console.log('reading init-params...');

		for (k in params) {
		for (var k in params) {
			console.log("IP: " + k + " => " + JSON.stringify(params[k]));
			if (k == "label_base_index") _label_base_index = parseInt(params[k]);
		}
+1 −1
Original line number Diff line number Diff line
@@ -939,7 +939,7 @@ function pref_hotkey_handler(e) {
	var hotkey_action = false;
	var hotkeys = getInitParam("hotkeys");

	for (sequence in hotkeys[1]) {
	for (var sequence in hotkeys[1]) {
		if (sequence == hotkey) {
			hotkey_action = hotkeys[1][sequence];
			break;
Loading