Permalink
Browse files

Revert "Improved browser and CommonJS compatibility. Cleaned up white…

…space."

This reverts commit shannon's 6b5610d.
  • Loading branch information...
1 parent 4ae7a88 commit c5fe3cd0d7e455312d5ac7e9ade6a1e2bd2ebed3 @ironcamel ironcamel committed Jan 25, 2013
Showing with 78 additions and 100 deletions.
  1. +1 −9 lib/Jemplate.pm
  2. +77 −91 src/js/kernel.js
View
@@ -402,25 +402,17 @@ sub _preamble {
Copyright 2006-2008 - Ingy döt Net - All rights reserved.
*/
-;(function(){
-
-var root = this,
- Jemplate;
-
+var Jemplate;
if (typeof(exports) == 'object') {
Jemplate = require("jemplate").Jemplate;
}
-else {
- Jemplate = root.Jemplate;
-}
if (typeof(Jemplate) == 'undefined')
throw('Jemplate.js must be loaded before any Jemplate template files');
...
}
-}());
1;
=head1 SYNOPSIS
Oops, something went wrong.

0 comments on commit c5fe3cd

Please sign in to comment.