Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
collapse platform.debug.js into platform.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jul 3, 2013
1 parent 715bd70 commit 7b5a119
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 73 deletions.
72 changes: 0 additions & 72 deletions platform.debug.js

This file was deleted.

44 changes: 43 additions & 1 deletion platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,50 @@
var thisFile = 'platform.js';
var scopeName = 'Platform';

// module dependencies

var ShadowDOMNative = [
'lib/patches-shadowdom-native.js'
];

var ShadowDOMPolyfill = [
'../ShadowDOM/shadowdom.js',
'lib/patches-shadowdom-polyfill.js'
];

var Lib = [
'lib/lang.js',
'lib/dom.js',
'lib/template.js',
'lib/inspector.js',
];

var MDV = [
'../mdv/mdv.js',
'lib/patches-mdv.js'
];

var Pointer = [
'../PointerGestures/pointergestures.js'
];

var WebElements = [
'../HTMLImports/html-imports.js',
'../CustomElements/custom-elements.js',
'lib/patches-custom-elements.js'
];

function processFlags(flags) {
this.modules = [flags.debug ? 'platform.debug.js' : 'platform.min.js'];
flags.shadow = (flags.shadowdom || flags.shadow || flags.polyfill ||
!HTMLElement.prototype.webkitCreateShadowRoot) && 'polyfill';
var ShadowDOM = flags.shadow ? ShadowDOMPolyfill : ShadowDOMNative;
this.modules = [].concat(
ShadowDOM,
Lib,
WebElements,
Pointer,
MDV
);
}

// export
Expand Down

0 comments on commit 7b5a119

Please sign in to comment.