Index: tools/profile_view.js |
diff --git a/tools/profile_view.js b/tools/profile_view.js |
index d1545acd99699adc8672afad809a969105ab0f74..43f5db10c60785f9642fc83a4c7ac222e61c5c3a 100644 |
--- a/tools/profile_view.js |
+++ b/tools/profile_view.js |
@@ -25,6 +25,10 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// Node imports |
+if (typeof module !== 'undefined' && module.exports) { |
+ ConsArray = require('./consarray'); |
+} |
/** |
* Creates a Profile View builder object. |
@@ -199,3 +203,9 @@ ProfileView.Node.prototype.sortChildren = function( |
sortFunc) { |
this.children.sort(sortFunc); |
}; |
+ |
+// Node exports |
+if (typeof module !== 'undefined' && module.exports) { |
+ module.exports.ProfileView = ProfileView; |
+ module.exports.ViewBuilder = ViewBuilder; |
+} |