coffeelint/lib/coffeelint.js in coffeelint-0.2.5 vs coffeelint/lib/coffeelint.js in coffeelint-0.2.6

- old
+ new

@@ -1,10 +1,10 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.coffeelint=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ module.exports={ "name": "coffeelint", "description": "Lint your CoffeeScript", - "version": "1.1.0", + "version": "1.2.0", "homepage": "http://www.coffeelint.org", "keywords": [ "lint", "coffeescript", "coffee-script" @@ -85,18 +85,10 @@ } ASTApi.prototype.getNodeName = function(node) { var children, name, _ref; name = node != null ? (_ref = node.constructor) != null ? _ref.name : void 0 : void 0; - if (name === (function() { - var _results; - _results = []; - for (name in node_children) { - if (!__hasProp.call(node_children, name)) continue; - _results.push(name); - } - return _results; - })()) { + if (node_children[name]) { return name; } else { for (name in node_children) { if (!__hasProp.call(node_children, name)) continue; children = node_children[name]; \ No newline at end of file