Permalink
Browse files

Satisfy jshint

  • Loading branch information...
jacobrask committed Nov 11, 2012
1 parent 4985cb0 commit 3454f82a7ee5723f688034fd2d99f37464e9e310
Showing with 3 additions and 16 deletions.
  1. +1 −1 web/models/preview.js
  2. +0 −13 web/views/documentationcollection.js
  3. +2 −2 web/views/preview.js
View
@@ -27,7 +27,7 @@ var Preview = Model.extend({
var extraHeight = parseInt(win.getComputedStyle(elem).getPropertyValue('padding-bottom'), 10);
var height = Math.max.apply(Math, childHeights) + extraHeight;
return Math.max(height, elem.offsetHeight);
- };
+ }
});
@@ -1,13 +0,0 @@
-'use strict';
-
-var Backbone = require('backbone');
-Backbone.$ = require('jquery-browserify');
-var View = Backbone.View;
-
-var PreviewView = require('./preview');
-var _ = require('underscore');
-
-
-var DocumentationView = View.extend({
-
-
View
@@ -1,4 +1,4 @@
-'use strict';
+'use strict'; /*global $:false,Prism:false*/
var _ = require('underscore');
/*var Prism = */require('../vendor/prism');
@@ -32,7 +32,7 @@ var PreviewView = View.extend({
this.getIframeDoc(function(doc) {
$(doc).ready(function() {
var el = doc.body;
- if (el.childElementCount == 0) return el.offsetHeight;
+ if (el.childElementCount === 0) return el.offsetHeight;
var win = el.ownerDocument.defaultView;
var children = el.getElementsByTagName('*');
for (var i = 0, l = children.length, childHeights = [], child; i < l; i++) {

0 comments on commit 3454f82

Please sign in to comment.