Check the link here
This file contains 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 characters
var obj = { | |
bindEvent: function() { | |
// Dom event | |
var dom = document.getElementById('dom'); | |
dom.addEventListener('change', this); | |
// window event | |
window.addEventListener('localized', this); | |
}, | |
handleEvent: function(evt) { |
This file contains 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 characters
function list() { | |
return Array.prototype.slice.call(arguments); | |
} | |
var list1 = list(1, 2, 3); // [1, 2, 3] | |
// Create a function with a preset leading argument | |
var leadingThirtysevenList = list.bind(undefined, 37); | |
var list2 = leadingThirtysevenList(); // [37] |
This file contains 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 characters
adb shell "stop b2g" | |
adb shell "cd /data/b2g/mozilla/*.default/ && echo 'user_pref(\"devtools.debugger.forbid-certified-apps\", false);' >> prefs.js" | |
adb shell "start b2g" |
This file contains 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 characters
if (true) { | |
var s = document.querySelector('xxxx').setAttribute('xxxx', | |
'xxxxx'); | |
} |
This file contains 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 characters
if (wifiManager) { | |
this._suspend('wifi'); | |
// make sure ril.ignore.mutex is set before turning off wifi-tethering | |
var req = SettingsListener.getSettingsLock().set({ | |
'ril.ignore.mutex': true | |
}); | |
req.onsuccess = function() { | |
SettingsListener.getSettingsLock().set({ |
This file contains 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 characters
diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js | |
index 730acd0..c14bf22 100644 | |
--- a/dom/wifi/WifiWorker.js | |
+++ b/dom/wifi/WifiWorker.js | |
@@ -3232,16 +3232,31 @@ WifiWorker.prototype = { | |
this.setWifiApEnabled(enabled, this.requestDone.bind(this)); | |
}.bind(this)); | |
- if (!enabled) { | |
- this.queueRequest({command: "setWifiEnabled", value: true}, function(data) { |
This file contains 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 characters
diff --git a/apps/settings/test/unit/panels/root/stk_item_test.js b/apps/settings/test/unit/panels/root/stk_item_test.js | |
index 4b31d2d..7ecd498 100644 | |
--- a/apps/settings/test/unit/panels/root/stk_item_test.js | |
+++ b/apps/settings/test/unit/panels/root/stk_item_test.js | |
@@ -1,20 +1,10 @@ | |
'use strict'; | |
-/* globals MocksHelper, MockNavigatorSettings */ | |
requireApp('settings/shared/test/unit/load_body_html_helper.js'); | |
-require('/shared/test/unit/mocks_helper.js'); | |
- |
This file contains 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 characters
diff --git a/apps/settings/test/unit/icc_test.js b/apps/settings/test/unit/icc_test.js | |
index a6bd1d8..fc0194c 100644 | |
--- a/apps/settings/test/unit/icc_test.js | |
+++ b/apps/settings/test/unit/icc_test.js | |
@@ -62,13 +62,6 @@ suite('STK (App menu) >', function() { | |
mocksHelper = new MocksHelper(mocksForIccApp); | |
mocksHelper.suiteSetup(); | |
- HtmlImports.populate(function() { | |
- window.addEventListener('iccPageLoaded', function onLoaded(event) { |
This file contains 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 characters
#!/usr/bin/perl -w | |
use WWW::Mechanize; | |
my $file = "test.txt"; | |
my $ofile = ">output.txt"; | |
my $checkURL = "http://www.ebi.ac.uk/pdbsum/"; | |
open FILE, $file or die "File open error!!"; | |
open FILE2, $ofile or die "File open error!!"; |
OlderNewer