Remove isJSC in mobile and underscore builds. [closes #196]

Former-commit-id: 77ddbbcfcf17b5074a7fba137dc426f20a6ab5dd
This commit is contained in:
John-David Dalton
2013-02-26 21:08:35 -08:00
parent b88b292d5d
commit eb8953e784
6 changed files with 44 additions and 41 deletions

View File

@@ -1239,12 +1239,17 @@
var sources = [];
var check = _.after(2, _.once(function() {
ok(_.every(sources, function(source) {
// remove `Function` in `_.template` before testing for additional use
return !/\bFunction\(/.test(source.replace(/= *\w+\(\w+, *['"]return.+?apply[^)]+\)/, ''));
}));
equal(sources[0], sources[1]);
QUnit.start();
}));
var callback = function(data) {
// remove copyright header and append source
// remove copyright header and append to `sources`
sources.push(data.source.replace(/^\/\**[\s\S]+?\*\/\n/, ''));
check();
};