1. David Chambers
  2. Mango

Commits

David Chambers  committed fd4cf5b

Made a couple of minor JavaScript optimizations.

  • Participants
  • Parent commits 542d2a9
  • Branches default

Comments (0)

Files changed (1)

File templates/base.dhtml

View file
 {% block scripts %}
 {{ block.super }}
 	<script type="text/javascript">
-		(function () {
-			var top, wrap = document.getElementById('wrap');
+		(function (undefined) {
+			var top, wrap = document.getElementById('wrap'), style = wrap.style;
 
-			if (typeof wrap.style.webkitBorderImage == 'undefined' &&
-				typeof wrap.style.MozBorderImage == 'undefined' &&
-				typeof wrap.style.borderImage == 'undefined') {
+			if (style.webkitBorderImage === undefined &&
+				style.MozBorderImage === undefined &&
+				style.borderImage === undefined) {
 
 				wrap.className = wrap.className ? wrap.className + ' noborderimage' : 'noborderimage';