Skip to content
Permalink
Browse files

Remove special open source tag

  • Loading branch information
Ryan J Daw
Ryan J Daw committed Feb 12, 2014
1 parent 8bfeb35 commit 31c82db133ae54489a92689ccb24d949838e9c1e
Showing with 7 additions and 28 deletions.
  1. +0 −2 server.js
  2. +2 −18 tag/v7.js
  3. +3 −3 tag/v7.min.js
  4. +0 −3 tag/v7.open.min.js
  5. +2 −2 tests/tag-integration-tests.html
@@ -25,8 +25,6 @@ var inlineTag = function(req, res, next) {

if (req.query['tag'] == "min") {
tagSource = '/tag/v7.min.js';
} else if (req.query['tag'] == "opensource") {
tagSource = '/tag/v7.open.min.js';
}

var tag = fs.readFileSync(__dirname + tagSource, 'utf8');
@@ -26,27 +26,11 @@
--accept_const_keyword \
--compilation_level ADVANCED_OPTIMIZATIONS \
--define EXPOSE=false \
--define SINGLE_MODE=false \
--define ALLOW_SKIP_PREVIEW=false \
--js tag/v7.js \
--use_types_for_optimization > tag/v7.min.js
To Compile Open Source Tag:
java -jar <path to compiler.jar> \
--accept_const_keyword \
--compilation_level ADVANCED_OPTIMIZATIONS \
--js tag/v7.js \
--define EXPOSE=false \
--use_types_for_optimization > tag/v7.open.min.js
*/

/** @define {boolean} */
var ALLOW_SKIP_PREVIEW = true;

/** @define {boolean} */
var SINGLE_MODE = true;

/** @define {boolean} */
var EXPOSE = true;

@@ -260,7 +244,7 @@ Private['collectTiming'] = collectTiming;
@type {!Object}
*/
var getOptions = function(options){
if (!SINGLE_MODE || options['mode']) {
if (options['mode']) {
// If the "options" objects has a mode, grab the mode and
// return the options set for that mode
var mode = getCookie("mobify-mode");
@@ -326,7 +310,7 @@ Tag['init'] = function(options) {

collectTiming();

if (!(ALLOW_SKIP_PREVIEW && options['skipPreview']) && isPreview()) {
if (!options['skipPreview'] && isPreview()) {
startCapture(loadPreview);
return;
}

Some generated files are not rendered by default. Learn more.

This file was deleted.

@@ -195,7 +195,7 @@
});

asyncTest("Single-mode loads", function() {
testSetup("/tests/fixtures/tag/single-mode.html?tag=opensource", function(win, doc, event) {
testSetup("/tests/fixtures/tag/single-mode.html?tag=min", function(win, doc, event) {
assertCapturing();
assertLoaded("/tests/fixtures/tag/mobile.js");

@@ -248,7 +248,7 @@

asyncTest("Skips preview if skipPreview is set.", function() {
// Test on Open Source
testSetup("/tests/fixtures/tag/skip-preview.html?tag=opensource#mobify-path=true", function(win, doc, event) {
testSetup("/tests/fixtures/tag/skip-preview.html?tag=min#mobify-path=true", function(win, doc, event) {
assertCapturing();
assertLoaded("/tests/fixtures/tag/mobile.js");

0 comments on commit 31c82db

Please sign in to comment.
You can’t perform that action at this time.